You are here

public function AccessControlHierarchyBase::__construct in Workbench Access 8

Constructs a new AccessControlHierarchyBase object.

Parameters

array $configuration: Configuration.

string $plugin_id: Plugin ID.

mixed $plugin_definition: Plugin definition.

\Drupal\workbench_access\UserSectionStorageInterface $user_section_storage: User section storage.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Config factory.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.

Overrides PluginBase::__construct

1 call to AccessControlHierarchyBase::__construct()
Taxonomy::__construct in src/Plugin/AccessControlHierarchy/Taxonomy.php
Constructs a new AccessControlHierarchyBase object.
1 method overrides AccessControlHierarchyBase::__construct()
Taxonomy::__construct in src/Plugin/AccessControlHierarchy/Taxonomy.php
Constructs a new AccessControlHierarchyBase object.

File

src/AccessControlHierarchyBase.php, line 81

Class

AccessControlHierarchyBase
Defines a base hierarchy class that others may extend.

Namespace

Drupal\workbench_access

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, UserSectionStorageInterface $user_section_storage, ConfigFactoryInterface $configFactory, EntityTypeManagerInterface $entityTypeManager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->config = $configFactory
    ->get('workbench_access.settings');
  $this->userSectionStorage = $user_section_storage;
  $this->entityTypeManager = $entityTypeManager;
  $this
    ->setConfiguration($configuration);
}