Skip to content

Kirby 4.1.0

$layouts->__set()

Internal setter for each object in the Collection; override from the Toolkit Collection is needed to make the CMS collections case-sensitive; child classes can override it again to add validation and custom behavior depending on the object type

$layouts->__set(string $id, object $object): void

Parameters

Name Type Default
$id * string
$object * object

Parent class

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