You are here

public function LegacyDrupal7Redirect::doRedirect in Language Cookie 8

Callback for the language_cookie.negotiation_cookie_legacy_redirect route.

1 string reference to 'LegacyDrupal7Redirect::doRedirect'
language_cookie.routing.yml in ./language_cookie.routing.yml
language_cookie.routing.yml

File

src/Controller/LegacyDrupal7Redirect.php, line 17

Class

LegacyDrupal7Redirect
Controller for legacy route (Drupal 7 path to Drupal 8 path).

Namespace

Drupal\language_cookie\Controller

Code

public function doRedirect() {
  return new RedirectResponse(Url::fromRoute('language_cookie.negotiation_cookie')
    ->setAbsolute()
    ->toString());
}