public function TransitionManager::__construct in Lightning Workflow 8.2
Same name and namespace in other branches
- 8.3 modules/lightning_scheduler/src/TransitionManager.php \Drupal\lightning_scheduler\TransitionManager::__construct()
TransitionManager constructor.
Parameters
ModerationInformationInterface $moderation_information: The moderation information service.
AccountInterface $current_user: The currently logged-in user.
EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
LoggerChannelInterface $logger: The logger channel.
TranslationInterface $translation: (optional) The string translation service.
File
- modules/
lightning_scheduler/ src/ TransitionManager.php, line 63
Class
Namespace
Drupal\lightning_schedulerCode
public function __construct(ModerationInformationInterface $moderation_information, AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, LoggerChannelInterface $logger, TranslationInterface $translation = NULL) {
$this->moderationInformation = $moderation_information;
$this->currentUser = $current_user;
$this->entityTypeManager = $entity_type_manager;
$this->logger = $logger;
if ($translation) {
$this
->setStringTranslation($translation);
}
}