Skip to content

Kirby 3.9.8

Search::collection()

Native search method to search for anything within the collection

Search::collection(Kirby\Cms\Collection $collection, ?string $query = null, mixed $params = [ ]): Kirby\Cms\Collection|bool

Parameters

Name Type Default
$collection * Kirby\Cms\Collection
$query string|null null
$params mixed [ ]

Return type

Kirby\Cms\Collection|bool

Parent class

Kirby\Cms\Search