public function ScheduledTransitionsRunner::__construct in Scheduled Transitions 8
Same name and namespace in other branches
- 2.x src/ScheduledTransitionsRunner.php \Drupal\scheduled_transitions\ScheduledTransitionsRunner::__construct()
Constructs a new ScheduledTransitionsRunner.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The configuration factory.
\Drupal\Component\Datetime\TimeInterface $time: System time.
\Psr\Log\LoggerInterface $logger: A logger instance.
\Drupal\content_moderation\ModerationInformationInterface $moderationInformation: General service for moderation-related questions about Entity API.
\Drupal\Core\Utility\Token $token: The token replacement system.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher: The event dispatcher.
File
- src/
ScheduledTransitionsRunner.php, line 100
Class
- ScheduledTransitionsRunner
- Executes transitions.
Namespace
Drupal\scheduled_transitionsCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, ConfigFactoryInterface $configFactory, TimeInterface $time, LoggerInterface $logger, ModerationInformationInterface $moderationInformation, Token $token, EventDispatcherInterface $eventDispatcher) {
$this->entityTypeManager = $entityTypeManager;
$this->configFactory = $configFactory;
$this->time = $time;
$this->logger = $logger;
$this->moderationInformation = $moderationInformation;
$this->token = $token;
$this->eventDispatcher = $eventDispatcher;
}