Skip to content

Kirby 5.0.4

$pages->remove()

Removes an object

$pages->remove(string|Kirby\Cms\Page $key): Kirby\Cms\Pages

Parameters

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

Return type

Kirby\Cms\Pages

This method does not modify the existing $pages object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Pages inherited from Kirby\Cms\Collection