WebAssetRegistryInterface
Web Asset Registry interface
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
add
Add Asset to registry of known assets
add(string type, \Joomla\CMS\WebAsset\WebAssetItemInterface asset) : self
since |
4.0.0 |
---|
Arguments
- type
string
Asset type, script or style etc- asset
\Joomla\CMS\WebAsset\WebAssetItemInterface
Asset instance
Response
self
exists
Check whether the asset exists in the registry.
exists(string type, string name) : bool
since |
4.0.0 |
---|
Arguments
- type
string
Asset type, script or style etc- name
string
Asset name
Response
bool
get
Get an existing Asset from a registry, by asset name and asset type.
get(string type, string name) : \Joomla\CMS\WebAsset\WebAssetItem
throws |
|
---|---|
since |
4.0.0 |
Arguments
- type
string
Asset type, script or style etc- name
string
Asset name
Response
\Joomla\CMS\WebAsset\WebAssetItem
remove
Remove Asset from registry.
remove(string type, string name) : self
since |
4.0.0 |
---|
Arguments
- type
string
Asset type, script or style etc- name
string
Asset name
Response
self