function EntityPermissionsForm::__construct
Same name in other branches
- 9 core/modules/user/src/Form/EntityPermissionsForm.php \Drupal\user\Form\EntityPermissionsForm::__construct()
- 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.
\Drupal\Core\Extension\ModuleExtensionList|null $module_extension_list: The module extension list.
Overrides UserPermissionsForm::__construct
File
-
core/
modules/ user/ src/ Form/ EntityPermissionsForm.php, line 65
Class
- EntityPermissionsForm
- Provides the permissions administration form for a bundle.
Namespace
Drupal\user\FormCode
public function __construct(PermissionHandlerInterface $permission_handler, RoleStorageInterface $role_storage, ModuleHandlerInterface $module_handler, ConfigManagerInterface $config_manager, EntityTypeManagerInterface $entity_type_manager, ?ModuleExtensionList $module_extension_list = NULL) {
if ($module_extension_list === NULL) {
@trigger_error('Calling ' . __METHOD__ . '() without the $module_extension_list argument is deprecated in drupal:10.3.0 and will be required in drupal:12.0.0. See https://www.drupal.org/node/3310017', E_USER_DEPRECATED);
$module_extension_list = \Drupal::service('extension.list.module');
}
parent::__construct($permission_handler, $role_storage, $module_handler, $module_extension_list);
$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.