Skip to content

Kirby 5.0.4

$collection->find()

Find one or multiple elements by id

$collection->find(string ...$keys): TValue|Kirby\Toolkit\Collection

Parameters

Name Type Default
...$keys string no default value

Return types

TValueorKirby\Toolkit\Collection

This method does not modify the existing $collection object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Toolkit\Collection