WebAssetManagerInterface
interface WebAssetManagerInterface
Web Asset Manager Interface
Methods
useAsset(string $type, string $name)
Enable an asset item to be attached to a Document
disableAsset(string $type, string $name)
Deactivate an asset item, so it will not be attached to a Document
bool
isAssetActive(string $type, string $name)
Check whether the asset are enabled
array
getAssets(string $type, bool $sort = false)
Get all assets that was enabled for given type
Details
WebAssetManagerInterface
useAsset(string $type, string $name)
Since: 4.0.0
Enable an asset item to be attached to a Document
WebAssetManagerInterface
disableAsset(string $type, string $name)
Since: 4.0.0
Deactivate an asset item, so it will not be attached to a Document