public static function AutomatedCron::getSubscribedEvents in Drupal 9
Same name and namespace in other branches
- 8 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\EventSubscriberCode
public static function getSubscribedEvents() {
  return [
    KernelEvents::TERMINATE => [
      [
        'onTerminate',
        100,
      ],
    ],
  ];
}