$layouts->remove()
Removes an object
$layouts->remove(string|Kirby\Cms\Layout $key): Kirby\Cms\Layouts
Parameters
Name | Type | Default | Description |
---|---|---|---|
$keyrequired | string orKirby\Cms\Layout |
no default value | the name of the key |
Return type
This method does not modify the existing $layouts
object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Cms\Layouts
inherited from Kirby\Cms\Collection