Skip to content

Kirby 6.0.0

Roles::load()

Loads all roles from plugins and the given blueprints directory and always includes the admin role

Roles::load(string|null $root = null, array $inject = []): Roles

Parameters

Name Type Default Description
$root stringornull null
$inject array<string, mixed> [] Props to add to each role if not defined

Return type

Kirby\Cms\Roles

Parent class

Kirby\Cms\Roles