You are here

TestController.php in Drupal 10

File

core/tests/Drupal/Tests/Core/Controller/TestController.php
View source
<?php

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

Namesort descending Description
TestController Defines a test controller used by unit tests.