function ElementInfoController::create

Same name in other branches
  1. 4.x src/Controller/ElementInfoController.php \Drupal\devel\Controller\ElementInfoController::create()

Overrides AutowireTrait::create

File

src/Controller/ElementInfoController.php, line 31

Class

ElementInfoController
Provides route responses for the element info page.

Namespace

Drupal\devel\Controller

Code

public static function create(ContainerInterface $container) : static {
    $instance = parent::create($container);
    $instance->elementInfo = $container->get('element_info');
    $instance->dumper = $container->get('devel.dumper');
    $instance->stringTranslation = $container->get('string_translation');
    return $instance;
}