Skip to content

Kirby 4.5.0

$options->__set()

Validate the type of every item that is being added to the collection. They need to have the class defined by static::TYPE.

$options->__set(string $key, $value): void

Parameters

Name Type Default
$key * string
$value * mixed

Parent class

Kirby\Option\Options inherited from Kirby\Blueprint\Collection