$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
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