public static function CsvSubscriber::getSubscribedEvents in CSV Serialization 8
Same name and namespace in other branches
- 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\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::REQUEST][] = [
'onKernelRequest',
];
return $events;
}