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->redirectDestination = \Drupal::destination();
  }

  return $this->redirectDestination;
}
doc_Drupal
2016-10-29 09:36:55
Comments
Leave a Comment

Please login to continue.