public function FakeWorkbenchController::workbench in Lingotek Translation 3.1.x
Same name and namespace in other branches
- 8.2 tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
- 4.0.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
- 3.0.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
- 3.2.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
- 3.3.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
- 3.4.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
- 3.5.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
- 3.6.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
- 3.7.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
- 3.8.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
Controller method for the workbench.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The request.
Return value
\Symfony\Component\HttpFoundation\JsonResponse A JSON response with the deserialized query string.
1 string reference to 'FakeWorkbenchController::workbench'
- lingotek_test.routing.yml in tests/
modules/ lingotek_test/ lingotek_test.routing.yml - tests/modules/lingotek_test/lingotek_test.routing.yml
File
- tests/
modules/ lingotek_test/ src/ Controller/ FakeWorkbenchController.php, line 25
Class
- FakeWorkbenchController
- Controller for faking the workbench in the TMS.
Namespace
Drupal\lingotek_test\ControllerCode
public function workbench(Request $request) {
$query = [];
parse_str($request
->getQueryString(), $query);
return new JsonResponse($query);
}