function DevelController::create

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

Overrides ControllerBase::create

File

src/Controller/DevelController.php, line 81

Class

DevelController
Returns responses for devel module routes.

Namespace

Drupal\devel\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('devel.dumper'), $container->get('entity_type.bundle.info'), $container->get('plugin.manager.field.field_type'), $container->get('plugin.manager.field.formatter'), $container->get('plugin.manager.field.widget'));
}