function DbtngExampleController::create
Same name in other branches
- 8.x-1.x dbtng_example/src/Controller/DbtngExampleController.php \Drupal\dbtng_example\Controller\DbtngExampleController::create()
- 4.0.x modules/dbtng_example/src/Controller/DbtngExampleController.php \Drupal\dbtng_example\Controller\DbtngExampleController::create()
Overrides ControllerBase::create
File
-
modules/
dbtng_example/ src/ Controller/ DbtngExampleController.php, line 26
Class
- DbtngExampleController
- Controller for DBTNG Example.
Namespace
Drupal\dbtng_example\ControllerCode
public static function create(ContainerInterface $container) {
$controller = new static($container->get('dbtng_example.repository'));
$controller->setStringTranslation($container->get('string_translation'));
return $controller;
}