function RedirectDestinationTrait::getDestinationArray
Same name in other branches
- 9 core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php \Drupal\Core\Routing\RedirectDestinationTrait::getDestinationArray()
- 8.9.x core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php \Drupal\Core\Routing\RedirectDestinationTrait::getDestinationArray()
- 10 core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php \Drupal\Core\Routing\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()
16 calls to RedirectDestinationTrait::getDestinationArray()
- BookAdminEditForm::bookAdminTableTree in core/
modules/ book/ src/ Form/ BookAdminEditForm.php - Helps build the main table in the book administration page form.
- BulkForm::viewsFormSubmit in core/
modules/ views/ src/ Plugin/ views/ field/ BulkForm.php - Submit handler for the bulk form.
- CommentAdminOverview::buildForm in core/
modules/ comment/ src/ Form/ CommentAdminOverview.php - Form constructor for the comment overview administration form.
- ContextualLinks::render in core/
modules/ contextual/ src/ Plugin/ views/ field/ ContextualLinks.php - Overrides \Drupal\views\Plugin\views\field\FieldPluginBase::render().
- EntityLinkDelete::renderLink in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLinkDelete.php - Prepares the link to view an entity.
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.