Skip to content

Kirby 6.0.0

$collection->find()

Find one or multiple elements by id

$collection->find(string|list ...$keys): mixed|Collection

Parameters

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

Return types

mixedorKirby\Cms\Collection

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

Parent class

Kirby\Cms\Collection inherited from Kirby\Toolkit\Collection