function 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.