function ElementInfoController::create

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

Overrides ControllerBase::create

File

src/Controller/ElementInfoController.php, line 48

Class

ElementInfoController
Provides route responses for the element info page.

Namespace

Drupal\devel\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('element_info'), $container->get('devel.dumper'));
}