function Drupal::destination
Same name in other branches
- 9 core/lib/Drupal.php \Drupal::destination()
- 10 core/lib/Drupal.php \Drupal::destination()
- 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 755
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.