public function TestController::simple in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/conneg_test/src/Controller/TestController.php \Drupal\conneg_test\Controller\TestController::simple()
Returns a json response.
Return value
\Symfony\Component\HttpFoundation\JsonResponse
1 string reference to 'TestController::simple'
- conneg_test.routing.yml in core/
modules/ system/ tests/ modules/ conneg_test/ conneg_test.routing.yml - core/modules/system/tests/modules/conneg_test/conneg_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ conneg_test/ src/ Controller/ TestController.php, line 24 - Contains \Drupal\conneg_test\Controller\TestController.
Class
- TestController
- Test controller for content negotation tests.
Namespace
Drupal\conneg_test\ControllerCode
public function simple() {
return new JsonResponse([
'some' => 'data',
]);
}