class PathEncodedTestController

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

Title Sort descending Modifiers Object type Summary
PathEncodedTestController::simple public function Returns an HTML simple response.

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