public function PathEncodedTestController::simple in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php \Drupal\path_encoded_test\Controller\PathEncodedTestController::simple()
Returns an HTML simple response.
Return value
\Symfony\Component\HttpFoundation\Response
1 string reference to 'PathEncodedTestController::simple'
- path_encoded_test.routing.yml in core/
modules/ system/ tests/ modules/ path_encoded_test/ path_encoded_test.routing.yml - core/modules/system/tests/modules/path_encoded_test/path_encoded_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ path_encoded_test/ src/ Controller/ PathEncodedTestController.php, line 17
Class
- PathEncodedTestController
- Returns responses for path_encoded_test routes.
Namespace
Drupal\path_encoded_test\ControllerCode
public function simple() {
return new Response('<html><body>PathEncodedTestController works</body></html>');
}