You are here

public function TermHandler::__construct in Permissions by Term 8.2

Same name and namespace in other branches
  1. 8 src/Service/TermHandler.php \Drupal\permissions_by_term\Service\TermHandler::__construct()

File

src/Service/TermHandler.php, line 37

Class

TermHandler

Namespace

Drupal\permissions_by_term\Service

Code

public function __construct(Connection $database, EntityFieldManager $entityFieldManager, EntityTypeManagerInterface $entityTypeManager) {
  $this->database = $database;
  $this->entityFieldManager = $entityFieldManager;
  $this->termStorage = $entityTypeManager
    ->getStorage('taxonomy_term');
}