function SystemStateEdit::create
Same name in other branches
- 8.x-1.x src/Form/SystemStateEdit.php \Drupal\devel\Form\SystemStateEdit::create()
- 4.x src/Form/SystemStateEdit.php \Drupal\devel\Form\SystemStateEdit::create()
Overrides FormBase::create
File
-
src/
Form/ SystemStateEdit.php, line 38
Class
- SystemStateEdit
- Form API form to edit a state.
Namespace
Drupal\devel\FormCode
public static function create(ContainerInterface $container) : static {
$instance = parent::create($container);
$instance->state = $container->get('state');
$instance->messenger = $container->get('messenger');
$instance->logger = $container->get('logger.channel.devel');
$instance->stringTranslation = $container->get('string_translation');
$instance->dumper = $container->get('devel.dumper');
return $instance;
}