You are here

public function AssignUserForm::__construct in Workbench Access 8

Constructs the form object.

Parameters

\Drupal\workbench_access\WorkbenchAccessManagerInterface $manager: The workbench access manager.

\Drupal\Core\Config\Entity\ConfigEntityStorageInterface $scheme_storage: The access scheme storage handler.

\Drupal\workbench_access\SectionAssociationStorageInterface $section_storage: The section storage handler.

\Drupal\workbench_access\UserSectionStorageInterface $user_section_storage: The user section storage service.

\Drupal\workbench_access\RoleSectionStorageInterface $role_section_storage: The role section storage service.

File

src/Form/AssignUserForm.php, line 82

Class

AssignUserForm
Builds the workbench_access set switch form.

Namespace

Drupal\workbench_access\Form

Code

public function __construct(WorkbenchAccessManagerInterface $manager, ConfigEntityStorageInterface $scheme_storage, SectionAssociationStorageInterface $section_storage, UserSectionStorageInterface $user_section_storage, RoleSectionStorageInterface $role_section_storage) {
  $this->manager = $manager;
  $this->schemeStorage = $scheme_storage;
  $this->sectionStorage = $section_storage;
  $this->userSectionStorage = $user_section_storage;
  $this->roleSectionStorage = $role_section_storage;
}