public function Taxonomy::__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.
\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: Entity field manager.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundleInfo: Entity type bundle info.
Overrides AccessControlHierarchyBase::__construct
File
- src/
Plugin/ AccessControlHierarchy/ Taxonomy.php, line 70
Class
- Taxonomy
- Defines a hierarchy based on a Vocabulary.
Namespace
Drupal\workbench_access\Plugin\AccessControlHierarchyCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, UserSectionStorageInterface $user_section_storage, ConfigFactoryInterface $configFactory, EntityTypeManagerInterface $entityTypeManager, EntityFieldManagerInterface $entityFieldManager, EntityTypeBundleInfoInterface $bundleInfo) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $user_section_storage, $configFactory, $entityTypeManager);
$this->entityFieldManager = $entityFieldManager;
$this->bundleInfo = $bundleInfo;
}