You are here

public static function RemoveXFrameOptionsSubscriber::getSubscribedEvents in Allow site iframing 8

Same name and namespace in other branches
  1. 3.0.x src/EventSubscriber/RemoveXFrameOptionsSubscriber.php \Drupal\allow_iframed_site\EventSubscriber\RemoveXFrameOptionsSubscriber::getSubscribedEvents()

File

src/EventSubscriber/RemoveXFrameOptionsSubscriber.php, line 80

Class

RemoveXFrameOptionsSubscriber
An event subscriber to remove the X-Frame-Options header.

Namespace

Drupal\allow_iframed_site\EventSubscriber

Code

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