function 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,
      ],
    ],
  ];
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
