function MockInvokeController::__invoke

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php \Drupal\Tests\Core\Controller\MockInvokeController::__invoke()
  2. 8.9.x core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php \Drupal\Tests\Core\Controller\MockInvokeController::__invoke()
  3. 10 core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php \Drupal\Tests\Core\Controller\MockInvokeController::__invoke()

File

core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php, line 226

Class

MockInvokeController

Namespace

Drupal\Tests\Core\Controller

Code

public function __invoke() {
    return 'This used __invoke().';
}

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