$options->has()
Checks if the given object or id is in the collection
$options->has(string|Kirby\Option\Option $key): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $keyrequired | stringorKirby\Option\Option |
no default value |
Return type
bool
This method modifies the existing $options object it is applied to and returns it again.
Parent class
Kirby\Option\Options
inherited from Kirby\Cms\Collection