You are here

public static function AutomatedCron::getSubscribedEvents in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

Overrides EventSubscriberInterface::getSubscribedEvents

File

core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php, line 81
Contains \Drupal\automated_cron\EventSubscriber\AutomatedCron.

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,
      ],
    ],
  ];
}