You are here

public static function CorsResponseEventSubscriber::getSubscribedEvents in CORS 8

File

src/EventSubscriber/CorsResponseEventSubscriber.php, line 134
Contains Drupal\cors\EventSubscriber\CorsResponseEventSubscriber

Class

CorsResponseEventSubscriber
Response Event Subscriber for adding CORS headers.

Namespace

Drupal\cors\EventSubscriber

Code

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