Skip to content

Kirby 6.0.0

Role::load()

Creates a role from the given blueprint file

Role::load(string $file, array $inject = []): Role

Parameters

Name Type Default Description
$filerequired string no default value
$inject array<string, mixed> [] Props to add if not defined

Return type

Kirby\Cms\Role

Parent class

Kirby\Cms\Role