You are here

public static function CsvSubscriber::getSubscribedEvents in CSV Serialization 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/CsvSubscriber.php \Drupal\csv_serialization\EventSubscriber\CsvSubscriber::getSubscribedEvents()

Implements \Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents().

File

src/EventSubscriber/CsvSubscriber.php, line 27

Class

CsvSubscriber
Event subscriber for adding CSV content types to the request.

Namespace

Drupal\csv_serialization\EventSubscriber

Code

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