You are here

public static function Drupal::destination in Drupal 10

Same name and namespace in other branches
  1. 8 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.

16 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.
KernelTestBase::bootKernel in core/tests/Drupal/KernelTests/KernelTestBase.php
Bootstraps a kernel for a test.
Links::getLinks in core/modules/views/src/Plugin/views/field/Links.php
Gets the list of links used by this field.

... See full list

File

core/lib/Drupal.php, line 701

Class

Drupal
Static Service Container wrapper.

Code

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