function RedirectDestinationTrait::getRedirectDestination
Same name in other branches
- 9 core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php \Drupal\Core\Routing\RedirectDestinationTrait::getRedirectDestination()
- 10 core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php \Drupal\Core\Routing\RedirectDestinationTrait::getRedirectDestination()
- 11.x core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php \Drupal\Core\Routing\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\RoutingCode
protected function getRedirectDestination() {
if (!isset($this->redirectDestination)) {
$this->redirectDestination = \Drupal::destination();
}
return $this->redirectDestination;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.