public function TransitionManager::__construct in Lightning Workflow 8.3
Same name and namespace in other branches
- 8.2 modules/lightning_scheduler/src/TransitionManager.php \Drupal\lightning_scheduler\TransitionManager::__construct()
TransitionManager constructor.
Parameters
\Drupal\content_moderation\ModerationInformationInterface $moderation_information: The moderation information service.
\Drupal\Core\Session\AccountInterface $current_user: The currently logged-in user.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\Core\Logger\LoggerChannelInterface $logger: The logger channel.
\Drupal\Core\StringTranslation\TranslationInterface $translation: (optional) The string translation service.
File
- modules/
lightning_scheduler/ src/ TransitionManager.php, line 66
Class
- TransitionManager
- Executes scheduled transition changes.
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);
}
}