public static function TwitterWidgetSubscriber::getSubscribedEvents in Twitter Profile Widget 3.x
Same name and namespace in other branches
- 8.2 src/EventSubscriber/TwitterWidgetSubscriber.php \Drupal\twitter_profile_widget\EventSubscriber\TwitterWidgetSubscriber::getSubscribedEvents()
- 8 src/EventSubscriber/TwitterWidgetSubscriber.php \Drupal\twitter_profile_widget\EventSubscriber\TwitterWidgetSubscriber::getSubscribedEvents()
Registers the methods in this class that should be listeners.
Return value
array An array of event listener definitions.
File
- src/
EventSubscriber/ TwitterWidgetSubscriber.php, line 138
Class
- TwitterWidgetSubscriber
- Class TwitterWidgetSubscriber.
Namespace
Drupal\twitter_profile_widget\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::RESPONSE][] = [
'onRespond',
];
return $events;
}