function EntityPermissionsForm::__construct

Same name in other branches
  1. 10 core/modules/user/src/Form/EntityPermissionsForm.php \Drupal\user\Form\EntityPermissionsForm::__construct()
  2. 11.x core/modules/user/src/Form/EntityPermissionsForm.php \Drupal\user\Form\EntityPermissionsForm::__construct()

Constructs a new EntityPermissionsForm.

Parameters

\Drupal\user\PermissionHandlerInterface $permission_handler: The permission handler.

\Drupal\user\RoleStorageInterface $role_storage: The role storage.

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

Drupal\Core\Config\ConfigManagerInterface $config_manager: The configuration entity manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

Overrides UserPermissionsForm::__construct

File

core/modules/user/src/Form/EntityPermissionsForm.php, line 62

Class

EntityPermissionsForm
Provides the permissions administration form for a bundle.

Namespace

Drupal\user\Form

Code

public function __construct(PermissionHandlerInterface $permission_handler, RoleStorageInterface $role_storage, ModuleHandlerInterface $module_handler, ConfigManagerInterface $config_manager, EntityTypeManagerInterface $entity_type_manager) {
    parent::__construct($permission_handler, $role_storage, $module_handler);
    $this->configManager = $config_manager;
    $this->entityTypeManager = $entity_type_manager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.