Skip to content

Kirby 6.0.0

$areas->update()

Updates an object in the collection

$areas->update(string|Area $key, Area|null $object = null): Areas

Parameters

Name Type Default Description
$keyrequired stringorKirby\Panel\Area no default value Key or object to update
$object Kirby\Panel\Areaornull null New object for the key

Return type

Kirby\Panel\Areas

This method modifies the existing $areas object it is applied to and returns it again.

Parent class

Kirby\Panel\Areas inherited from Kirby\Cms\Collection