function EnforcedFormResponseSubscriber::getSubscribedEvents

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/EventSubscriber/EnforcedFormResponseSubscriber.php \Drupal\Core\EventSubscriber\EnforcedFormResponseSubscriber::getSubscribedEvents()
  2. 8.9.x core/lib/Drupal/Core/EventSubscriber/EnforcedFormResponseSubscriber.php \Drupal\Core\EventSubscriber\EnforcedFormResponseSubscriber::getSubscribedEvents()
  3. 10 core/lib/Drupal/Core/EventSubscriber/EnforcedFormResponseSubscriber.php \Drupal\Core\EventSubscriber\EnforcedFormResponseSubscriber::getSubscribedEvents()

File

core/lib/Drupal/Core/EventSubscriber/EnforcedFormResponseSubscriber.php, line 39

Class

EnforcedFormResponseSubscriber
Handle the EnforcedResponseException and deliver an EnforcedResponse.

Namespace

Drupal\Core\EventSubscriber

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.