Skip to content

Kirby 6.0.0

Find::role()

Returns the role object for the given name

Find::role(string $name): 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