function DevelReinstall::create
Same name in other branches
- 4.x src/Form/DevelReinstall.php \Drupal\devel\Form\DevelReinstall::create()
Overrides FormBase::create
File
-
src/
Form/ DevelReinstall.php, line 35
Class
- DevelReinstall
- Display a dropdown of installed modules with the option to reinstall them.
Namespace
Drupal\devel\FormCode
public static function create(ContainerInterface $container) : static {
$instance = parent::create($container);
$instance->moduleInstaller = $container->get('module_installer');
$instance->moduleExtensionList = $container->get('extension.list.module');
$instance->updateHookRegistry = $container->get('update.update_hook_registry');
$instance->stringTranslation = $container->get('string_translation');
return $instance;
}