function ElementInfoController::create
Instantiates a new instance of the implementing class using autowiring.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this instance should use.
Return value
static
Overrides AutowireTrait::create
File
-
src/
Controller/ ElementInfoController.php, line 31
Class
- ElementInfoController
- Provides route responses for the element info page.
Namespace
Drupal\devel\ControllerCode
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;
}