function LayoutInfoController::create
Same name in other branches
- 8.x-1.x src/Controller/LayoutInfoController.php \Drupal\devel\Controller\LayoutInfoController::create()
- 4.x src/Controller/LayoutInfoController.php \Drupal\devel\Controller\LayoutInfoController::create()
Overrides AutowireTrait::create
File
-
src/
Controller/ LayoutInfoController.php, line 22
Class
- LayoutInfoController
- Returns response for Layout Info route.
Namespace
Drupal\devel\ControllerCode
public static function create(ContainerInterface $container) : static {
$instance = parent::create($container);
$instance->layoutPluginManager = $container->get('plugin.manager.core.layout');
$instance->stringTranslation = $container->get('string_translation');
return $instance;
}