Skip to content

Kirby 6.0.0

$areas->remove()

Removes an object

$areas->remove(string|Area $key): Areas

Parameters

Name Type Default Description
$keyrequired stringorKirby\Panel\Area no default value Key or object to remove

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