You are here

public function AccessUnpublishedPermissions::__construct in Access unpublished 8

Constructs a new AccessUnpublishedPermissions instance.

Parameters

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

\Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service.

File

src/AccessUnpublishedPermissions.php, line 35

Class

AccessUnpublishedPermissions
Calculates the permissions for access_unpublished.

Namespace

Drupal\access_unpublished

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationInterface $translation) {
  $this->entityTypeManager = $entity_type_manager;
  $this->stringTranslation = $translation;
}