You are here

function workflow_cron in Workflow 8

Same name and namespace in other branches
  1. 5.2 workflow.module \workflow_cron()
  2. 5 workflow.module \workflow_cron()
  3. 6.2 workflow.module \workflow_cron()
  4. 6 workflow.module \workflow_cron()
  5. 7.2 workflow.module \workflow_cron()
  6. 7 workflow.module \workflow_cron()

Implements hook_cron().

Given a time frame, execute all scheduled transitions.

File

./workflow.module, line 258
Support workflows made up of arbitrary states.

Code

function workflow_cron() {
  WorkflowManager::executeScheduledTransitionsBetween(0, \Drupal::time()
    ->getRequestTime());
}