$areas->has()
Checks if the given object or id is in the collection
$areas->has(string|Area $key): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $keyrequired | stringorKirby\Panel\Area |
no default value |
Return type
bool
Parent class
Kirby\Panel\Areas
inherited from Kirby\Cms\Collection