You are here

class MockController in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php \Drupal\Tests\Core\Controller\MockController
  2. 9 core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php \Drupal\Tests\Core\Controller\MockController

Hierarchy

Expanded class hierarchy of MockController

File

core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php, line 196
Contains \Drupal\Tests\Core\Controller\ControllerResolverTest.

Namespace

Drupal\Tests\Core\Controller
View source
class MockController {
  public function getResult() {
    return 'This is a regular controller.';
  }
  public function getControllerWithRequestAndRouteMatch(RouteMatchInterface $route_match, Request $request) {
    return 'this is another example controller';
  }

}

Members