Plugin
class Plugin (View source)
Properties
protected string | $key | The plugin key. |
|
protected string | $name | The plugin name. |
|
protected string | $description | The plugin description. |
|
protected AssetGroup | $requiredAssetGroup | The list of required assets for this plugin. |
Methods
__construct()
Initialize the instance.
getRequiredAssets()
Get the list of required assets for this plugin.
requireAsset(AssetInterface|string $assetType, string|null|false $assetHandle = false)
Add an asset to the assets required for this plugin.
string
getKey()
Get the plugin key.
setKey(string $key)
Set the plugin key.
string
getName()
Get the plugin name.
setName(string $name)
Set the plugin name.
string
getDescription()
Get the plugin description.
setDescription(string $description)
Set the plugin description.
Details
__construct()
Initialize the instance.
AssetGroup
getRequiredAssets()
Get the list of required assets for this plugin.
requireAsset(AssetInterface|string $assetType, string|null|false $assetHandle = false)
Add an asset to the assets required for this plugin.
string
getKey()
Get the plugin key.
setKey(string $key)
Set the plugin key.
string
getName()
Get the plugin name.
setName(string $name)
Set the plugin name.
string
getDescription()
Get the plugin description.
setDescription(string $description)
Set the plugin description.