function SettingsForm::create
Same name in other branches
- 4.x src/Form/SettingsForm.php \Drupal\devel\Form\SettingsForm::create()
Overrides ConfigFormBase::create
File
-
src/
Form/ SettingsForm.php, line 29
Class
- SettingsForm
- Defines a form that configures devel settings.
Namespace
Drupal\devel\FormCode
public static function create(ContainerInterface $container) : static {
$instance = parent::create($container);
$instance->dumperManager = $container->get('plugin.manager.devel_dumper');
$instance->config = $container->get('config.factory')
->getEditable('devel.settings');
$instance->stringTranslation = $container->get('string_translation');
return $instance;
}