PathEncodedTestController.php

Same filename in other branches
  1. 9 core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php
  2. 8.9.x core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php
  3. 10 core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php

Namespace

Drupal\path_encoded_test\Controller

File

core/modules/system/tests/modules/path_encoded_test/src/Controller/PathEncodedTestController.php

View source
<?php

declare (strict_types=1);
namespace Drupal\path_encoded_test\Controller;

use Symfony\Component\HttpFoundation\Response;

/**
 * Returns responses for path_encoded_test routes.
 */
class PathEncodedTestController {
    
    /**
     * Returns an HTML simple response.
     *
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function simple() {
        return new Response('<html><body>PathEncodedTestController works</body></html>');
    }

}

Classes

Title Deprecated Summary
PathEncodedTestController Returns responses for path_encoded_test routes.

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