You are here

TestController.php in Drupal 9

File

core/modules/system/tests/modules/csrf_test/src/Controller/TestController.php
View source
<?php

namespace Drupal\csrf_test\Controller;

use Symfony\Component\HttpFoundation\Response;

/**
 * Just a test controller for test routes.
 */
class TestController {

  /**
   * Just a test method for the test routes.
   *
   * @return \Symfony\Component\HttpFoundation\Response
   *   The response object.
   */
  public function testMethod() {
    return new Response('Sometimes it is hard to think of test content!');
  }

}

Classes

Namesort descending Description
TestController Just a test controller for test routes.