Skip to content

Kirby 5.1.2

$items->search()

Searches the collection

$items->search(string|null $query = null, array|string $params = [ ]): Kirby\Cms\Items

Parameters

Name Type Default
$query stringornull null
$params arrayorstring [ ]

Return type

Kirby\Cms\Items

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

Parent class

Kirby\Cms\Items inherited from Kirby\Cms\Collection