W3cubDocs

/Drupal 8

class EnforcedFormResponseSubscriber

Handle the EnforcedResponseException and deliver an EnforcedResponse.

Hierarchy

File

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

Namespace

Drupal\Core\EventSubscriber

Members

Name Modifiers Type Description
EnforcedFormResponseSubscriber::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to. Overrides EventSubscriberInterface::getSubscribedEvents
EnforcedFormResponseSubscriber::onKernelException public function Replaces the response in case an EnforcedResponseException was thrown.
EnforcedFormResponseSubscriber::onKernelResponse public function Unwraps an enforced response.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!EnforcedFormResponseSubscriber.php/class/EnforcedFormResponseSubscriber/8.1.x