Skip to content

Kirby 6.0.0

$structure->find()

Find one or multiple elements by id

$structure->find(string|list ...$keys): StructureObject|Structure

Parameters

Name Type Default Description
...$keys stringorlist<string> no default value One or more keys, or a single array of keys

Return types

Kirby\Cms\StructureObjectorKirby\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\Toolkit\Collection