function Drupal::destination

Same name in other branches
  1. 8.9.x core/lib/Drupal.php \Drupal::destination()
  2. 10 core/lib/Drupal.php \Drupal::destination()
  3. 11.x 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 721

Class

Drupal
Static Service Container wrapper.

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.