function ContrivedController::create
Same name in other branches
- 3.x modules/testing_example/src/Controller/ContrivedController.php \Drupal\testing_example\Controller\ContrivedController::create()
- 4.0.x modules/testing_example/src/Controller/ContrivedController.php \Drupal\testing_example\Controller\ContrivedController::create()
File
-
testing_example/
src/ Controller/ ContrivedController.php, line 20
Class
- ContrivedController
- A highly-contrived controller class used to demonstrate unit testing.
Namespace
Drupal\testing_example\ControllerCode
public static function create(ContainerInterface $container) {
return new static($container->get('string_translation'));
}