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