You are here

public static function Drupal::destination in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal.php \Drupal::destination()

Returns the redirect destination helper.

Return value

\Drupal\Core\Routing\RedirectDestinationInterface The redirect destination helper.

1 call to Drupal::destination()
RedirectDestinationTrait::getRedirectDestination in core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php
Returns the redirect destination service.

File

core/lib/Drupal.php, line 755
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function destination() {
  return static::getContainer()
    ->get('redirect.destination');
}