RedirectResponseSubscriber::checkRedirectUrl

public RedirectResponseSubscriber::checkRedirectUrl(FilterResponseEvent $event) Allows manipulation of the response object when performing a redirect. Parameters \Symfony\Component\HttpKernel\Event\FilterResponseEvent $event: The Event to process. File core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php, line 48 Class RedirectResponseSubscriber Allows manipulation of the response object when performing a redirect. Namespace Drupal\Core\EventSubscriber Code public funct

RedirectResponseSubscriber::$unroutedUrlAssembler

The unrouted URL assembler service. Type: \Drupal\Core\Utility\UnroutedUrlAssemblerInterface File core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php, line 27 Class RedirectResponseSubscriber Allows manipulation of the response object when performing a redirect. Namespace Drupal\Core\EventSubscriber Code protected $unroutedUrlAssembler;

RedirectResponseSubscriber

Allows manipulation of the response object when performing a redirect. Hierarchy class \Drupal\Core\EventSubscriber\RedirectResponseSubscriber implements EventSubscriberInterface 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::c

RedirectDestinationTrait::setRedirectDestination

public RedirectDestinationTrait::setRedirectDestination(RedirectDestinationInterface $redirect_destination) Sets the redirect destination service. Parameters \Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service. Return value $this File core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php, line 61 Class RedirectDestinationTrait Wrapper methods for the Redirect Destination. Namespace Drupal\Core\Routing Code public function setR

RedirectDestinationTrait::getRedirectDestination

protected RedirectDestinationTrait::getRedirectDestination() Returns the redirect destination service. Return value \Drupal\Core\Routing\RedirectDestinationInterface The redirect destination helper. File core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php, line 45 Class RedirectDestinationTrait Wrapper methods for the Redirect Destination. Namespace Drupal\Core\Routing Code protected function getRedirectDestination() { if (!isset($this->redirectDestination)) { $this->

RedirectDestinationTrait::getDestinationArray

protected RedirectDestinationTrait::getDestinationArray() Prepares a 'destination' URL query parameter for use with \Drupal\Core\Url. Return value array An associative array containing the key: destination: The value of the current request's 'destination' query parameter, if present. This can be either a relative or absolute URL. However, for security, redirection to external URLs is not performed. If the query parameter isn't present, then the URL of the current request is returned. See al

RedirectDestinationTrait::$redirectDestination

The redirect destination service. Type: \Drupal\Core\Routing\RedirectDestinationInterface File core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php, line 20 Class RedirectDestinationTrait Wrapper methods for the Redirect Destination. Namespace Drupal\Core\Routing Code protected $redirectDestination;

RedirectDestinationTrait

Wrapper methods for the Redirect Destination. This utility trait should only be used in application-level code, such as classes that would implement ContainerInjectionInterface. Services registered in the Container should not use this trait but inject the appropriate service directly for easier testing. Hierarchy trait \Drupal\Core\Routing\RedirectDestinationTrait File core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php, line 13 Namespace Drupal\Core\Routing Members Name Modif

RedirectDestinationInterface::set

public RedirectDestinationInterface::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 File core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php, line 55 Class RedirectDestinationInterface Provides an interface for redirect destinations. Namespace Drupal\Core\Routin

RedirectDestinationInterface::getAsArray

public RedirectDestinationInterface::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 'destinatio