public function ScheduledTransitionsPermissions::__construct in Scheduled Transitions 8
Same name and namespace in other branches
- 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_transitionsCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $bundleInfo, TranslationInterface $stringTranslation, ScheduledTransitionsUtilityInterface $scheduledTransitionsUtility) {
$this->entityTypeManager = $entityTypeManager;
$this->bundleInfo = $bundleInfo;
$this->stringTranslation = $stringTranslation;
$this->scheduledTransitionsUtility = $scheduledTransitionsUtility;
}