public function TermHandler::__construct in Permissions by Term 8.2
Same name and namespace in other branches
- 8 src/Service/TermHandler.php \Drupal\permissions_by_term\Service\TermHandler::__construct()
File
- src/
Service/ TermHandler.php, line 37
Class
Namespace
Drupal\permissions_by_term\ServiceCode
public function __construct(Connection $database, EntityFieldManager $entityFieldManager, EntityTypeManagerInterface $entityTypeManager) {
$this->database = $database;
$this->entityFieldManager = $entityFieldManager;
$this->termStorage = $entityTypeManager
->getStorage('taxonomy_term');
}