function ConsoleSubscriber::getSubscribedEvents
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Command/EventSubscriber/ConsoleSubscriber.php \Drupal\Core\Command\EventSubscriber\ConsoleSubscriber::getSubscribedEvents()
File
-
core/
lib/ Drupal/ Core/ Command/ EventSubscriber/ ConsoleSubscriber.php, line 41
Class
- ConsoleSubscriber
- Set a logger so that log messages appear in console output.
Namespace
Drupal\Core\Command\EventSubscriberCode
public static function getSubscribedEvents() : array {
$events[ConsoleEvents::COMMAND][] = [
'onCommand',
500,
];
return $events;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.