public function ScheduledTransitionJob::__construct in Scheduled Transitions 8
Same name and namespace in other branches
- 2.x src/Plugin/QueueWorker/ScheduledTransitionJob.php \Drupal\scheduled_transitions\Plugin\QueueWorker\ScheduledTransitionJob::__construct()
Constructs a new ScheduledTransitionJob.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\scheduled_transitions\ScheduledTransitionsRunnerInterface $scheduledTransitionsRunner: Executes transitions.
Overrides PluginBase::__construct
File
- src/
Plugin/ QueueWorker/ ScheduledTransitionJob.php, line 58
Class
- ScheduledTransitionJob
- Runs a scheduled transition.
Namespace
Drupal\scheduled_transitions\Plugin\QueueWorkerCode
public function __construct(array $configuration, string $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager, ScheduledTransitionsRunnerInterface $scheduledTransitionsRunner) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->scheduledTransitionStorage = $entityTypeManager
->getStorage('scheduled_transition');
$this->scheduledTransitionsRunner = $scheduledTransitionsRunner;
}