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

Returns the redirect destination helper.

Return value

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

11 calls to Drupal::destination()
CommonTestController::destination in core/modules/system/tests/modules/common_test/src/Controller/CommonTestController.php
Prints a destination query parameter.
content_translation_form_field_config_edit_form_alter in core/modules/content_translation/content_translation.module
Implements hook_form_FORM_ID_alter() for 'field_config_edit_form'.
hook_user_login in core/modules/user/user.api.php
The user just logged in.
RedirectDestinationTrait::getRedirectDestination in core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php
Returns the redirect destination service.
shortcut_preprocess_page_title in core/modules/shortcut/shortcut.module
Implements hook_preprocess_HOOK() for page title templates.

... See full list

File

core/lib/Drupal.php, line 714

Class

Drupal
Static Service Container wrapper.

Code

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