public function LingotekWorkbenchController::loadDocument in Lingotek Translation 8.2
Same name and namespace in other branches
- 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\ControllerCode
public function loadDocument($doc_id, $locale) {
return $this
->workbenchPageRedirect($doc_id, $locale);
}