Skip to content

Kirby 6.0.1

$element->filter()

Returns an array with all nested elements that could be found for the given query

$element->filter(string $query): list

Parameters

Name Type Default
$queryrequired string no default value

Return type

list<Kirby\Parsley\Element>

Parent class

Kirby\Parsley\Element