Skip to content

$layouts->set()

Adds a new element to the collection

$layouts->set(mixed $key, mixed $value = null): Kirby\Toolkit\Collection

Parameters

Name Type Default Description
$key * mixed string or array
$value mixed null

Return type

Kirby\Toolkit\Collection

Parent class

Kirby\Cms\Layouts inherited from Kirby\Toolkit\Collection