function TestController::content

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Controller/TestController.php \Drupal\Tests\Core\Controller\TestController::content()
  2. 8.9.x core/tests/Drupal/Tests/Core/Controller/TestController.php \Drupal\Tests\Core\Controller\TestController::content()
  3. 10 core/tests/Drupal/Tests/Core/Controller/TestController.php \Drupal\Tests\Core\Controller\TestController::content()

Returns test content for unit tests.

File

core/tests/Drupal/Tests/Core/Controller/TestController.php, line 17

Class

TestController
Defines a test controller used by unit tests.

Namespace

Drupal\Tests\Core\Controller

Code

public function content() {
    return new Response('');
}

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