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