Skip to content

Kirby 5.4.0

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

Kirby\Cms\Role

Exceptions

Type Description
Kirby\Exception\NotFoundException if the role cannot be found

Parent class

Kirby\Cms\Find