TestController.php
Namespace
Drupal\csrf_test\ControllerFile
- 
              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
| Title | Deprecated | Summary | 
|---|---|---|
| TestController | Just a test controller for test routes. | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
