public function ScheduledTransitionsJobs::__construct in Scheduled Transitions 8
Same name and namespace in other branches
- 2.x src/ScheduledTransitionsJobs.php \Drupal\scheduled_transitions\ScheduledTransitionsJobs::__construct()
Constructs a new ScheduledTransitionsRunner.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Component\Datetime\TimeInterface $time: System time.
\Drupal\Core\Queue\QueueFactory $queueFactory: The queue factory.
\Psr\Log\LoggerInterface $logger: A logger instance.
File
- src/
ScheduledTransitionsJobs.php, line 63
Class
- ScheduledTransitionsJobs
- Job runner for Scheduled Transitions.
Namespace
Drupal\scheduled_transitionsCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, TimeInterface $time, QueueFactory $queueFactory, LoggerInterface $logger) {
$this->entityTypeManager = $entityTypeManager;
$this->time = $time;
$this->queue = $queueFactory
->get('scheduled_transition_job');
$this->logger = $logger;
}