You are here

public function PermissionGenerator::__construct in Role Delegation 8

Construct a new permission generator.

Parameters

\Drupal\role_delegation\DelegatableRolesInterface $delegatable_roles: The delegatable roles service.

File

src/PermissionGenerator.php, line 27

Class

PermissionGenerator
The PermissionGenerator class.

Namespace

Drupal\role_delegation

Code

public function __construct(DelegatableRolesInterface $delegatable_roles) {
  $this->delegatableRoles = $delegatable_roles;
}