Skip to content

Kirby 6.0.1

$nestCollection->find()

Find one or multiple elements by id

$nestCollection->find(string|list ...$keys): NestCollection|NestObject|Field

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\NestCollectionorKirby\Cms\NestObjectorKirby\Content\Field

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

Parent class

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