You are here

class PathEncodedTestController in Drupal 9

Same name and namespace in other branches
  1. 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

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\Controller
View 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

Namesort descending Modifiers Type Description Overrides
PathEncodedTestController::simple public function Returns an HTML simple response.