function EntityTypeInfoController::create

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

Overrides AutowireTrait::create

File

src/Controller/EntityTypeInfoController.php, line 31

Class

EntityTypeInfoController
Provides route responses for the entity types info page.

Namespace

Drupal\devel\Controller

Code

public static function create(ContainerInterface $container) : static {
    $instance = parent::create($container);
    $instance->dumper = $container->get('devel.dumper');
    $instance->entityLastInstalledSchemaRepository = $container->get('entity.last_installed_schema.repository');
    $instance->entityTypeManager = $container->get('entity_type.manager');
    $instance->stringTranslation = $container->get('string_translation');
    return $instance;
}