You are here

public function RoleConfigurationHandler::onPermissionLoad in Configuration Management 7.3

File

src/Handlers/RoleConfigurationHandler.php, line 92

Class

RoleConfigurationHandler

Namespace

Configuration\Handlers

Code

public function onPermissionLoad($event) {
  $permission = $event->configuration
    ->getData();
  foreach ($permission['roles'] as $role) {
    $this->configuration_manager
      ->newDependency($event->configuration, 'role.' . $role);
  }
}