class MockController in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php \Drupal\Tests\Core\Controller\MockController
Hierarchy
- class \Drupal\Tests\Core\Controller\MockController
Expanded class hierarchy of MockController
File
- core/
tests/ Drupal/ Tests/ Core/ Controller/ ControllerResolverTest.php, line 249 - Contains \Drupal\Tests\Core\Controller\ControllerResolverTest.
Namespace
Drupal\Tests\Core\ControllerView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MockController:: |
public | function | ||
MockController:: |
public | function |