TestController.php
Namespace
Drupal\Tests\Core\ControllerFile
-
core/
tests/ Drupal/ Tests/ Core/ Controller/ TestController.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\Core\Controller;
use Symfony\Component\HttpFoundation\Response;
/**
* Defines a test controller used by unit tests.
*/
class TestController {
/**
* Returns test content for unit tests.
*/
public function content() {
return new Response('');
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| TestController | Defines a test controller used by unit tests. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.