You are here

class PathEncodedTestController in Drupal 8

Same name and namespace in other branches
  1. 9 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 a 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 a HTML simple response.