public function ScheduledTransitionsHooks::cron in Scheduled Transitions 8
Same name and namespace in other branches
- 2.x src/ScheduledTransitionsHooks.php \Drupal\scheduled_transitions\ScheduledTransitionsHooks::cron()
Implements hook_cron().
See also
File
- src/
ScheduledTransitionsHooks.php, line 58
Class
- ScheduledTransitionsHooks
- Hooks for Scheduled Transitions module.
Namespace
Drupal\scheduled_transitionsCode
public function cron() : void {
$settings = $this->configFactory
->get('scheduled_transitions.settings');
if (!empty($settings
->get('automation.cron_create_queue_items'))) {
$this->scheduledTransitionsJobs
->jobCreator();
}
}