$pages->remove()
Removes an object
$pages->remove(string|Kirby\Cms\Page $key): Kirby\Cms\Pages
Parameters
Name | Type | Default | Description |
---|---|---|---|
$keyrequired | string orKirby\Cms\Page |
no default value | the name of the key |
Return type
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