You are here

public function GroupPermissionHandler::__construct in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Access/GroupPermissionHandler.php \Drupal\group\Access\GroupPermissionHandler::__construct()

Constructs a new PermissionHandler.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.

\Drupal\Core\Controller\ControllerResolverInterface $controller_resolver: The controller resolver.

\Drupal\group\Plugin\GroupContentEnablerManagerInterface $plugin_manager: The group content enabler plugin manager.

File

src/Access/GroupPermissionHandler.php, line 92

Class

GroupPermissionHandler
Provides the available permissions based on yml files.

Namespace

Drupal\group\Access

Code

public function __construct(ModuleHandlerInterface $module_handler, TranslationInterface $string_translation, ControllerResolverInterface $controller_resolver, GroupContentEnablerManagerInterface $plugin_manager) {
  $this->moduleHandler = $module_handler;
  $this->stringTranslation = $string_translation;
  $this->controllerResolver = $controller_resolver;
  $this->pluginManager = $plugin_manager;
}