Skip to content

Kirby 4.2.0

$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

Kirby\Cms\PluginAssets

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