You are here

public function UserPermissionsForm::__construct in User Permissions 8

Constructs a new UserPermissionsForm.

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\Session\AccountInterface $account: The user from current session.

Overrides UserPermissionsForm::__construct

File

src/Form/UserPermissionsForm.php, line 48

Class

UserPermissionsForm
User permissions form for granting permissions to individual users.

Namespace

Drupal\user_permissions\Form

Code

public function __construct(PermissionHandlerInterface $permission_handler, RoleStorageInterface $role_storage, ModuleHandlerInterface $module_handler, AccountInterface $account) {
  parent::__construct($permission_handler, $role_storage, $module_handler);
  $this->account = $account;
}