Skip to content

Kirby 6.0.0

$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

Kirby\Cms\Layouts

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