RedirectDestinationInterface::get

public RedirectDestinationInterface::get() Gets the destination as a path. To convert to a URL suitable for \Symfony\Component\HttpFoundation\RedirectResponse::__construct() use \Drupal\Core\Url::fromUserInput(\Drupal::destination()->get())->setAbsolute()->toString() Return value string File core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php, line 42 Class RedirectDestinationInterface Provides an interface for redirect destinations. Namespace Drupal\Core\Routing C

RedirectDestinationInterface

Provides an interface for redirect destinations. Hierarchy interface \Drupal\Core\Routing\RedirectDestinationInterface File core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php, line 8 Namespace Drupal\Core\Routing Members Name Modifiers Type Description RedirectDestinationInterface::get public function Gets the destination as a path. RedirectDestinationInterface::getAsArray public function Prepares a 'destination' URL query parameter for use with \Drupa

RedirectDestination::__construct

public RedirectDestination::__construct(RequestStack $request_stack, UrlGeneratorInterface $url_generator) Constructs a new RedirectDestination instance. Parameters \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack. \Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator. File core/lib/Drupal/Core/Routing/RedirectDestination.php, line 42 Class RedirectDestination Provides helpers for redirect destinations. Namespace Drupal\Core\Routin

RedirectDestination::set

public RedirectDestination::set($new_destination) Sets the destination as URL. This method should be used really rarely, for example views uses it, in order to override all destination calls in all of its rendering. Parameters string $new_destination: The new destination. Return value $this Overrides RedirectDestinationInterface::set File core/lib/Drupal/Core/Routing/RedirectDestination.php, line 77 Class RedirectDestination Provides helpers for redirect destinations. Namespace Drupal

RedirectDestination::getAsArray

public RedirectDestination::getAsArray() Prepares a 'destination' URL query parameter for use with \Drupal\Core\Url. Used to direct the user back to the referring page after completing a form. By default the current URL is returned. If a destination exists in the current request, that destination is returned. As such, a destination can persist across multiple pages. Return value array An associative array containing the key: destination: The value of the current request's 'destination' query

RedirectDestination::get

public RedirectDestination::get() Gets the destination as a path. To convert to a URL suitable for \Symfony\Component\HttpFoundation\RedirectResponse::__construct() use \Drupal\Core\Url::fromUserInput(\Drupal::destination()->get())->setAbsolute()->toString() Return value string Overrides RedirectDestinationInterface::get File core/lib/Drupal/Core/Routing/RedirectDestination.php, line 57 Class RedirectDestination Provides helpers for redirect destinations. Namespace Drupal\Cor

RedirectDestination::$urlGenerator

The URL generator. Type: \Drupal\Core\Routing\UrlGeneratorInterface File core/lib/Drupal/Core/Routing/RedirectDestination.php, line 25 Class RedirectDestination Provides helpers for redirect destinations. Namespace Drupal\Core\Routing Code protected $urlGenerator;

RedirectDestination::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Routing/RedirectDestination.php, line 18 Class RedirectDestination Provides helpers for redirect destinations. Namespace Drupal\Core\Routing Code protected $requestStack;

RedirectDestination::$destination

The destination used by the current request. Type: string File core/lib/Drupal/Core/Routing/RedirectDestination.php, line 32 Class RedirectDestination Provides helpers for redirect destinations. Namespace Drupal\Core\Routing Code protected $destination;

RedirectDestination

Provides helpers for redirect destinations. Hierarchy class \Drupal\Core\Routing\RedirectDestination implements RedirectDestinationInterface 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. RedirectDestinat