Skip to content

Kirby 5.1.3

$structure->__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

$structure->__set(string $id, Kirby\Cms\StructureObject $object): void

Parameters

Name Type Default
$idrequired string no default value
$objectrequired Kirby\Cms\StructureObject no default value

Parent class

Kirby\Cms\Structure inherited from Kirby\Cms\Collection