Skip to content

Kirby 4.1.2

$structure->search()

Searches the collection

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

Parameters

Name Type Default
$query string|null null
$params array|string [ ]

Return type

Kirby\Cms\Structure

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

Parent class

Kirby\Cms\Structure inherited from Kirby\Cms\Collection