You are here

public function LingotekWorkbenchController::loadDocument in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 8 src/Controller/LingotekWorkbenchController.php \Drupal\lingotek\Controller\LingotekWorkbenchController::loadDocument()

Load a document for redirect.

Parameters

string $doc_id: The Lingotek document id.

string $locale: The Lingotek locale.

Return value

\Drupal\Core\Routing\TrustedRedirectResponse A redirect.

Deprecated

Use LingotekWorkbenchRedirectController instead. Since 8.x-2.2.

File

src/Controller/LingotekWorkbenchController.php, line 30

Class

LingotekWorkbenchController
Class LingotekWorkbenchController.

Namespace

Drupal\lingotek\Controller

Code

public function loadDocument($doc_id, $locale) {
  return $this
    ->workbenchPageRedirect($doc_id, $locale);
}