protected function 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 also
\Drupal\Core\Routing\RedirectDestinationInterface::getAsArray()
File
- core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php, line 35
Class
- RedirectDestinationTrait
- Wrapper methods for the Redirect Destination.
Namespace
Drupal\Core\RoutingCode
protected function getDestinationArray() { return $this->getRedirectDestination()->getAsArray(); }
© 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!RedirectDestinationTrait.php/function/RedirectDestinationTrait::getDestinationArray/8.1.x