Skip to content

Kirby 4.5.0

$layouts->findBy()

Find a single element by an attribute and its value

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

Parameters

Name Type Default
$attribute * string
$value * mixed

Return type

mixed|null

Parent class

Kirby\Cms\Layouts inherited from Kirby\Cms\Collection