-
Notifications
You must be signed in to change notification settings - Fork 641
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…_define_url Element::EVENT_DEFINE_URL
- Loading branch information
Showing
5 changed files
with
94 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
* @author Pixel & Tonic, Inc. <[email protected]> | ||
* @since 4.0.0 | ||
*/ | ||
class DefineAssetUrlEvent extends Event | ||
class DefineAssetUrlEvent extends DefineUrlEvent | ||
{ | ||
/** | ||
* @var ImageTransform|string|array|null Asset transform index that is being generated (if any) | ||
|
@@ -28,12 +28,7 @@ class DefineAssetUrlEvent extends Event | |
/** | ||
* @var Asset The asset that is being transformed. | ||
* @since 4.0.0 | ||
* @deprecated in 4.3.0. [[$sender]] should be used instead. | ||
*/ | ||
public Asset $asset; | ||
|
||
/** | ||
* @var string|null Url to requested Asset that should be used instead. | ||
* @since 4.0.0 | ||
*/ | ||
public ?string $url = null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* @link https://craftcms.com/ | ||
* @copyright Copyright (c) Pixel & Tonic, Inc. | ||
* @license https://craftcms.github.io/license/ | ||
*/ | ||
|
||
namespace craft\events; | ||
|
||
use yii\base\Event; | ||
|
||
/** | ||
* Define URL event class | ||
* | ||
* @author Pixel & Tonic, Inc. <[email protected]> | ||
* @since 4.3.0 | ||
*/ | ||
class DefineUrlEvent extends Event | ||
{ | ||
/** | ||
* @var string|null The URL | ||
*/ | ||
public ?string $url = null; | ||
} |