Skip to content

Kirby 6.0.0

Role::factory()

Creates a role from the given props and resolves blueprint extensions

Role::factory(array $props, array $inject = []): Role

Parameters

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

Return type

Kirby\Cms\Role

Parent class

Kirby\Cms\Role