function AutomatedCron::getSubscribedEvents
Same name in other branches
- 9 core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php \Drupal\automated_cron\EventSubscriber\AutomatedCron::getSubscribedEvents()
- 8.9.x core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php \Drupal\automated_cron\EventSubscriber\AutomatedCron::getSubscribedEvents()
- 11.x 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() : array {
return [
KernelEvents::TERMINATE => [
[
'onTerminate',
100,
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.