You are here

public static function AutomatedCron::getSubscribedEvents in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php \Drupal\automated_cron\EventSubscriber\AutomatedCron::getSubscribedEvents()

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

File

core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php, line 76

Class

AutomatedCron
A subscriber running cron after a response is sent.

Namespace

Drupal\automated_cron\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    KernelEvents::TERMINATE => [
      [
        'onTerminate',
        100,
      ],
    ],
  ];
}