Skip to content

Kirby 6.0.0

$structure->remove()

Removes an object

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

Parameters

Name Type Default Description
$keyrequired stringorKirby\Cms\StructureObject no default value Key or object to remove

Return type

Kirby\Cms\Structure

This method modifies the existing $structure object it is applied to and returns it again.

Parent class

Kirby\Cms\Structure inherited from Kirby\Cms\Collection