You are here

protected function LingotekConfigTranslationController::redirectToConfigTranslateOverview in Lingotek Translation 3.3.x

Same name and namespace in other branches
  1. 8 src/Controller/LingotekConfigTranslationController.php \Drupal\lingotek\Controller\LingotekConfigTranslationController::redirectToConfigTranslateOverview()
  2. 8.2 src/Controller/LingotekConfigTranslationController.php \Drupal\lingotek\Controller\LingotekConfigTranslationController::redirectToConfigTranslateOverview()
  3. 4.0.x src/Controller/LingotekConfigTranslationController.php \Drupal\lingotek\Controller\LingotekConfigTranslationController::redirectToConfigTranslateOverview()
  4. 3.0.x src/Controller/LingotekConfigTranslationController.php \Drupal\lingotek\Controller\LingotekConfigTranslationController::redirectToConfigTranslateOverview()
  5. 3.1.x src/Controller/LingotekConfigTranslationController.php \Drupal\lingotek\Controller\LingotekConfigTranslationController::redirectToConfigTranslateOverview()
  6. 3.2.x src/Controller/LingotekConfigTranslationController.php \Drupal\lingotek\Controller\LingotekConfigTranslationController::redirectToConfigTranslateOverview()
  7. 3.4.x src/Controller/LingotekConfigTranslationController.php \Drupal\lingotek\Controller\LingotekConfigTranslationController::redirectToConfigTranslateOverview()
  8. 3.5.x src/Controller/LingotekConfigTranslationController.php \Drupal\lingotek\Controller\LingotekConfigTranslationController::redirectToConfigTranslateOverview()
  9. 3.6.x src/Controller/LingotekConfigTranslationController.php \Drupal\lingotek\Controller\LingotekConfigTranslationController::redirectToConfigTranslateOverview()
  10. 3.7.x src/Controller/LingotekConfigTranslationController.php \Drupal\lingotek\Controller\LingotekConfigTranslationController::redirectToConfigTranslateOverview()
  11. 3.8.x src/Controller/LingotekConfigTranslationController.php \Drupal\lingotek\Controller\LingotekConfigTranslationController::redirectToConfigTranslateOverview()

Redirect to config translation overview page.

Parameters

string $plugin_id: The plugin id.

Return value

\Symfony\Component\HttpFoundation\RedirectResponse A redirect response.

6 calls to LingotekConfigTranslationController::redirectToConfigTranslateOverview()
LingotekConfigTranslationController::checkDownload in src/Controller/LingotekConfigTranslationController.php
LingotekConfigTranslationController::checkUpload in src/Controller/LingotekConfigTranslationController.php
LingotekConfigTranslationController::download in src/Controller/LingotekConfigTranslationController.php
LingotekConfigTranslationController::request in src/Controller/LingotekConfigTranslationController.php
LingotekConfigTranslationController::update in src/Controller/LingotekConfigTranslationController.php

... See full list

File

src/Controller/LingotekConfigTranslationController.php, line 592

Class

LingotekConfigTranslationController

Namespace

Drupal\lingotek\Controller

Code

protected function redirectToConfigTranslateOverview($plugin_id) {
  $mappers = $this->configMapperManager
    ->getMappers();
  $mapper = $mappers[$plugin_id];
  $uri = Url::fromRoute($mapper
    ->getOverviewRouteName());
  return new RedirectResponse($uri
    ->setAbsolute(TRUE)
    ->toString());
}