$pluginassets->set()
Adds a new element to the collection
$pluginassets->set(mixed $key, mixed $value = null): Kirby\Cms\PluginAssets
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $key * | mixed |
– | string or array |
| $value | mixed |
null |
Return type
This method modifies the existing $pluginassets object it is applied to and returns it again.
Parent class
Kirby\Cms\PluginAssets inherited from Kirby\Toolkit\Collection