function LayoutInfoController::create

Same name in other branches
  1. 8.x-1.x src/Controller/LayoutInfoController.php \Drupal\devel\Controller\LayoutInfoController::create()
  2. 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\Controller

Code

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;
}