public function LegacyDrupal7Redirect::doRedirect in Language Cookie 8
Callback for the language_cookie.negotiation_cookie_legacy_redirect route.
1 string reference to 'LegacyDrupal7Redirect::doRedirect'
File
- src/
Controller/ LegacyDrupal7Redirect.php, line 17
Class
- LegacyDrupal7Redirect
- Controller for legacy route (Drupal 7 path to Drupal 8 path).
Namespace
Drupal\language_cookie\ControllerCode
public function doRedirect() {
return new RedirectResponse(Url::fromRoute('language_cookie.negotiation_cookie')
->setAbsolute()
->toString());
}