WebAssetManagerInterface
Web Asset Manager Interface
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
disableAsset
Deactivate an asset item, so it will not be attached to a Document
disableAsset(string type, string name) : self
throws |
|
---|---|
since |
4.0.0 |
Arguments
- type
string
Asset type, script or style etc- name
string
The asset name
Response
self
getAssets
Get all assets that was enabled for given type
getAssets(string type, bool sort = false) : \Joomla\CMS\WebAsset\WebAssetItemInterface[]
throws |
|
---|---|
since |
4.0.0 |
Arguments
- type
string
Asset type, script or style etc- sort
bool
Whether need to sort the assets to follow the dependency Graph
Response
\Joomla\CMS\WebAsset\WebAssetItemInterface[]
isAssetActive
Check whether the asset are enabled
isAssetActive(string type, string name) : bool
throws |
|
---|---|
since |
4.0.0 |
Arguments
- type
string
Asset type, script or style etc- name
string
The asset name
Response
bool
useAsset
Enable an asset item to be attached to a Document
useAsset(string type, string name) : self
throws |
|
---|---|
since |
4.0.0 |
Arguments
- type
string
Asset type, script or style etc- name
string
The asset name
Response
self