You are here

public static function TwitterWidgetSubscriber::getSubscribedEvents in Twitter Profile Widget 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/TwitterWidgetSubscriber.php \Drupal\twitter_profile_widget\EventSubscriber\TwitterWidgetSubscriber::getSubscribedEvents()
  2. 3.x 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 137

Class

TwitterWidgetSubscriber
Class TwitterWidgetSubscriber.

Namespace

Drupal\twitter_profile_widget\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::RESPONSE][] = [
    'onRespond',
  ];
  return $events;
}