You are here

function rules_cron in Rules 8.3

Same name and namespace in other branches
  1. 6 rules/modules/rules.events.inc \rules_cron()
  2. 7.2 modules/events.inc \rules_cron()

Implements hook_cron().

File

./rules.module, line 190
Hook implementations for the Rules module.

Code

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