$role->is()
Compares the current object with the given role object
$role->is(Kirby\Cms\Role|null $role = null): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $role | Kirby\Cms\Roleornull |
null
|
Return type
bool
This method modifies the existing $role object it is applied to and returns it again.