Skip to content

Kirby 4.4.1

$path->findBy()

Find a single element by an attribute and its value

$path->findBy(string $attribute, mixed $value): mixed|null

Parameters

Name Type Default
$attribute * string
$value * mixed

Return type

mixed|null

Parent class

Kirby\Http\Path inherited from Kirby\Toolkit\Collection