function PathEncodedTestController::simple

Same name and namespace in other branches
  1. 8.9.x core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php \Drupal\path_encoded_test\Controller\PathEncodedTestController::simple()
  2. 10 core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php \Drupal\path_encoded_test\Controller\PathEncodedTestController::simple()
  3. 11.x 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\Controller

Code

public function simple() {
    return new Response('<html><body>PathEncodedTestController works</body></html>');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.