$areas->findBy()
Find a single element by an attribute and its value
$areas->findBy(string $attribute, mixed $value): Area|null
Parameters
| Name | Type | Default |
|---|---|---|
| $attributerequired | string |
no default value |
| $valuerequired | mixed |
no default value |
Return types
Kirby\Panel\Areaornull
Parent class
Kirby\Panel\Areas
inherited from Kirby\Cms\Collection