function PermissionHandler::__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\Utility\CallableResolver $callable_resolver: The callable resolver.
\Drupal\Core\Extension\ModuleExtensionList $moduleExtensionList: The module extension list.
File
- 
              core/
modules/ user/ src/ PermissionHandler.php, line 90  
Class
- PermissionHandler
 - Provides the available permissions based on yml files.
 
Namespace
Drupal\userCode
public function __construct(ModuleHandlerInterface $module_handler, TranslationInterface $string_translation, CallableResolver $callable_resolver, protected ModuleExtensionList $moduleExtensionList) {
  $this->callableResolver = $callable_resolver;
  // @todo It would be nice if you could pull all module directories from the
  //   container.
  $this->moduleHandler = $module_handler;
  $this->stringTranslation = $string_translation;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.