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