W3cubDocs

/Drupal 8

class RedirectDestination

Provides helpers for redirect destinations.

Hierarchy

File

core/lib/Drupal/Core/Routing/RedirectDestination.php, line 11

Namespace

Drupal\Core\Routing

Members

Name Modifiers Type Description
RedirectDestination::$destination protected property The destination used by the current request.
RedirectDestination::$requestStack protected property The request stack.
RedirectDestination::$urlGenerator protected property The URL generator.
RedirectDestination::get public function Gets the destination as a path. Overrides RedirectDestinationInterface::get
RedirectDestination::getAsArray public function Prepares a 'destination' URL query parameter for use with \Drupal\Core\Url. Overrides RedirectDestinationInterface::getAsArray
RedirectDestination::set public function Sets the destination as URL. Overrides RedirectDestinationInterface::set
RedirectDestination::__construct public function Constructs a new RedirectDestination instance.

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