Skip to content

Kirby 5.0.4

$structure->remove()

Removes an object

$structure->remove(string|Kirby\Cms\StructureObject $key): Kirby\Cms\Structure

Parameters

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

Return type

Kirby\Cms\Structure

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