You are here

function scheduled_publish_cron in Scheduled Publish 8

Same name and namespace in other branches
  1. 8.3 scheduled_publish.module \scheduled_publish_cron()
  2. 8.2 scheduled_publish.module \scheduled_publish_cron()

Implements hook_cron().

1 string reference to 'scheduled_publish_cron'
ultimate_cron.job.scheduled_publish_cron.yml in config/install/ultimate_cron.job.scheduled_publish_cron.yml
config/install/ultimate_cron.job.scheduled_publish_cron.yml

File

./scheduled_publish.module, line 96
Contains scheduled_publish.module.

Code

function scheduled_publish_cron() {

  /**
   * @var ScheduledPublishCron $scheduledPublishUpdate
   */
  $scheduledPublishUpdate = \Drupal::service('scheduled_publish.update');
  $scheduledPublishUpdate
    ->doUpdate();
}