WebAssetRegistryAssetChanged
Extends AbstractEventEvent class for WebAssetRegistry "asset changed" events
since |
4.0.0 |
---|---|
package |
Application |
Methods
__construct
Constructor. Overridden to go through the argument setters.
__construct(string name, array arguments = []) : mixed
since |
4.0.0 |
---|
Arguments
- name
string
The event name.- arguments
array
The event arguments.
Response
mixed
create
Creates a new CMS event object for a given event name and subject. The following arguments must be given: subject object The subject of the event. This is the core object you are going to manipulate.
create(string eventName, array arguments = []) : static
eventClass string The Event class name. If you do not provide it Joomla\CMS\Events<eventNameWithoutOnPrefix> will be used.
since |
4.0.0 |
---|---|
throws |
|
Arguments
- eventName
string
The name of the event, e.g. onTableBeforeLoad- arguments
array
Additional arguments to pass to the event
Response
static
getArgument
Get an event argument value. It will use a getter method if one exists. The getters have the signature:
getArgument(string name, mixed default = null) : mixed
get<ArgumentName>($value): mixed
where:
$value is the value currently stored in the $arguments array of the event It returns the value to return to the caller.
since |
4.0.0 |
---|
Arguments
- name
string
The argument name.- default
mixed
The default value if not found.
Response
mixed
The argument value or the default value.
getAsset
Return modified asset
getAsset() : \Joomla\CMS\WebAsset\WebAssetItemInterface
since |
4.0.0 |
---|
Response
\Joomla\CMS\WebAsset\WebAssetItemInterface
getAssetType
Return a type of modified asset
getAssetType() : string
since |
4.0.0 |
---|
Response
string
getChange
Return a type of changes: new, remove, override
getChange() : string
since |
4.0.0 |
---|
Response
string
offsetSet
Set the value of an event argument.
offsetSet(string name, mixed value) : void
since |
4.0.0 |
---|---|
throws |
|
Arguments
- name
string
The argument name.- value
mixed
The argument value.
offsetUnset
Remove an event argument.
offsetUnset(string name) : void
since |
4.0.0 |
---|---|
throws |
|
Arguments
- name
string
The argument name.
setArgument
Add argument to event. It will use a setter method if one exists. The setters have the signature:
setArgument(string name, mixed value) : $this
set<ArgumentName>($value): mixed
where:
$value is the value being set by the user It returns the value to return to set in the $arguments array of the event.
since |
4.0.0 |
---|
Arguments
- name
string
Argument name.- value
mixed
Value.
Response
$this
setSubject
Setter for the subject argument
setSubject(\Joomla\CMS\WebAsset\WebAssetRegistryInterface value) : \Joomla\CMS\WebAsset\WebAssetRegistryInterface
throws |
|
---|---|
since |
4.0.0 |
Arguments
- value
\Joomla\CMS\WebAsset\WebAssetRegistryInterface
The value to set
Response
\Joomla\CMS\WebAsset\WebAssetRegistryInterface
Properties
constructed
A flag to see if the constructor has been already called.