class PathEncodedTestController 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
Returns responses for path_encoded_test routes.
Hierarchy
- class \Drupal\path_encoded_test\Controller\PathEncodedTestController
Expanded class hierarchy of PathEncodedTestController
File
- core/
modules/ system/ tests/ modules/ path_encoded_test/ src/ Controller/ PathEncodedTestController.php, line 10
Namespace
Drupal\path_encoded_test\ControllerView source
class PathEncodedTestController {
/**
* Returns an HTML simple response.
*
* @return \Symfony\Component\HttpFoundation\Response
*/
public function simple() {
return new Response('<html><body>PathEncodedTestController works</body></html>');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PathEncodedTestController:: |
public | function | Returns an HTML simple response. |