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