Skip to content

Kirby 6.0.0

$fields->search()

Searches the collection

$fields->search(string|null $query = null, array|string $params = []): Fields

Parameters

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

Return type

Kirby\Form\Fields

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

Parent class

Kirby\Form\Fields inherited from Kirby\Cms\Collection