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; }
Please login to continue.