You are here

public function FakeWorkbenchController::workbench in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
  2. 3.0.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
  3. 3.1.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
  4. 3.2.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
  5. 3.3.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
  6. 3.4.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
  7. 3.5.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
  8. 3.6.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
  9. 3.7.x tests/modules/lingotek_test/src/Controller/FakeWorkbenchController.php \Drupal\lingotek_test\Controller\FakeWorkbenchController::workbench()
  10. 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\Controller

Code

public function workbench(Request $request) {
  $query = [];
  parse_str($request
    ->getQueryString(), $query);
  return new JsonResponse($query);
}