$props->set()
Sets the value of a prop via its setter or directly, merging associative arrays into the current value
$props->set(string $name, mixed $value): void
Parameters
| Name | Type | Default |
|---|---|---|
| $namerequired | string |
no default value |
| $valuerequired | mixed |
no default value |
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\LogicException |
if the prop does not exist |
TypeError |
if the value has the wrong type |