You are here

public function VocabularyAccessControlHandler::__construct in Taxonomy access fix 8.3

Same name and namespace in other branches
  1. 8.2 src/VocabularyAccessControlHandler.php \Drupal\taxonomy_access_fix\VocabularyAccessControlHandler::__construct()

Constructs a new VocabularyAccessControlHandler instance.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides EntityAccessControlHandler::__construct

File

src/VocabularyAccessControlHandler.php, line 34

Class

VocabularyAccessControlHandler
Extends access control for Taxonomy Vocabulary entities.

Namespace

Drupal\taxonomy_access_fix

Code

public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($entity_type);
  $this->entityTypeManager = $entity_type_manager;
}