function DevelGenerateForm::create

Same name in other branches
  1. 8.x-1.x devel_generate/src/Form/DevelGenerateForm.php \Drupal\devel_generate\Form\DevelGenerateForm::create()
  2. 4.x devel_generate/src/Form/DevelGenerateForm.php \Drupal\devel_generate\Form\DevelGenerateForm::create()

Overrides FormBase::create

File

devel_generate/src/Form/DevelGenerateForm.php, line 30

Class

DevelGenerateForm
Defines a form that allows privileged users to generate entities.

Namespace

Drupal\devel_generate\Form

Code

public static function create(ContainerInterface $container) : static {
    $instance = parent::create($container);
    $instance->develGenerateManager = $container->get('plugin.manager.develgenerate');
    $instance->messenger = $container->get('messenger');
    $instance->logger = $container->get('logger.channel.devel_generate');
    $instance->requestStack = $container->get('request_stack');
    $instance->stringTranslation = $container->get('string_translation');
    return $instance;
}