$blocks->has()
Checks if the given object or id is in the collection
$blocks->has(string|object $id): bool
Parameters
Name | Type | Default | Description |
---|---|---|---|
$id |
string |object |
– |
Return type
bool
Inherited from
Kirby\Cms\Collection