You are here

public function EntityPrintPermissions::__construct in Entity Print 8

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

Constructs a new EntityPrintPermissions.

Parameters

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.

\Drupal\Core\StringTranslation\TranslationManager $translation_manager: The translation manager.

File

src/EntityPrintPermissions.php, line 44

Class

EntityPrintPermissions
Provides dynamic permissions for entity_print.

Namespace

Drupal\entity_print

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, TranslationManager $translation_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->stringTranslation = $translation_manager;
}