Skip to content

Kirby 4.5.0

$element->find()

Tries to find a single nested element by query and otherwise returns null

$element->find(string $query): Kirby\Parsley\Element|null

Parameters

Name Type Default
$query * string

Return type

Kirby\Parsley\Element|null

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

Parent class

Kirby\Parsley\Element