$layouts->remove()
Removes an object
$layouts->remove(string|Layout $key): Layouts
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $keyrequired | stringorKirby\Cms\Layout |
no default value | Key or object to remove |
Return type
This method modifies the existing $layouts object it is applied to and returns it again.
Parent class
Kirby\Cms\Layouts
inherited from Kirby\Cms\Collection