$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
TValue
orKirby\Toolkit\Collection
This method does not modify the existing $collection
object but returns a new object with the changes applied. Learn more →