$areas->set()
Adds a new element to the collection
$areas->set(array|string $key, Area|null $value = null): Areas
Parameters
| Name | Type | Default |
|---|---|---|
| $keyrequired | arrayorstring |
no default value |
| $value | Kirby\Panel\Areaornull |
null
|
Return type
This method modifies the existing $areas object it is applied to and returns it again.
Parent class
Kirby\Panel\Areas
inherited from Kirby\Toolkit\Collection