function rules_cron

Same name in other branches
  1. 7.x-2.x modules/events.inc \rules_cron()

Implements hook_cron().

File

./rules.module, line 191

Code

function rules_cron() {
    $event = new SystemCronEvent();
    $event_dispatcher = \Drupal::service('event_dispatcher');
    $event_dispatcher->dispatch($event, SystemCronEvent::EVENT_NAME);
}