Find::role()
Returns the role object for the given name
Find::role(string $name): Kirby\Cms\Role
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $namerequired | string |
no default value | Role name/id |
Return type
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\NotFoundException |
if the role cannot be found |