You are here

public function ScheduledTransitionsPermissions::__construct in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x src/ScheduledTransitionsPermissions.php \Drupal\scheduled_transitions\ScheduledTransitionsPermissions::__construct()

Constructs a new ScheduledTransitionsPermissions.

Parameters

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundleInfo: The bundle information service.

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

\Drupal\scheduled_transitions\ScheduledTransitionsUtilityInterface $scheduledTransitionsUtility: Utilities for Scheduled Transitions module.

File

src/ScheduledTransitionsPermissions.php, line 69

Class

ScheduledTransitionsPermissions
Generates permissions for host entity types for scheduled transitions.

Namespace

Drupal\scheduled_transitions

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $bundleInfo, TranslationInterface $stringTranslation, ScheduledTransitionsUtilityInterface $scheduledTransitionsUtility) {
  $this->entityTypeManager = $entityTypeManager;
  $this->bundleInfo = $bundleInfo;
  $this->stringTranslation = $stringTranslation;
  $this->scheduledTransitionsUtility = $scheduledTransitionsUtility;
}