$languages->findBy()
Find a single element by an attribute and its value
$languages->findBy(string $attribute, mixed $value): mixed|null
Parameters
Name | Type | Default | Description |
---|---|---|---|
$attribute |
string |
– | |
$value |
mixed |
– |
Return type
mixed
|null
Inherited from
Kirby\Toolkit\Collection