Skip to content

Kirby 5.0.2

$layouts->remove()

Removes an object

$layouts->remove(string|Kirby\Cms\Layout $key): Kirby\Cms\Layouts

Parameters

Name Type Default Description
$keyrequired stringorKirby\Cms\Layout no default value the name of the key

Return type

Kirby\Cms\Layouts

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