W3cubDocs

/Drupal 8

class RedirectResponseSubscriber

Allows manipulation of the response object when performing a redirect.

Hierarchy

File

core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php, line 20

Namespace

Drupal\Core\EventSubscriber

Members

Name Modifiers Type Description
RedirectResponseSubscriber::$unroutedUrlAssembler protected property The unrouted URL assembler service.
RedirectResponseSubscriber::checkRedirectUrl public function Allows manipulation of the response object when performing a redirect.
RedirectResponseSubscriber::getDestinationAsAbsoluteUrl protected function Converts the passed in destination into an absolute URL.
RedirectResponseSubscriber::getSubscribedEvents static function Registers the methods in this class that should be listeners. Overrides EventSubscriberInterface::getSubscribedEvents
RedirectResponseSubscriber::sanitizeDestination public function Sanitize the destination parameter to prevent open redirect attacks.
RedirectResponseSubscriber::__construct public function Constructs a RedirectResponseSubscriber object.

© 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!RedirectResponseSubscriber.php/class/RedirectResponseSubscriber/8.1.x