ModuleUninstallValidatorInterface

Common interface for module uninstall validators. A module uninstall validator must implement this interface and be defined in a Drupal service that is tagged module_install.uninstall_validator. Hierarchy interface \Drupal\Core\Extension\ModuleUninstallValidatorInterface File core/lib/Drupal/Core/Extension/ModuleUninstallValidatorInterface.php, line 12 Namespace Drupal\Core\Extension Members Name Modifiers Type Description ModuleUninstallValidatorInterface::validate public

ModuleUninstallValidatorException

Defines an exception thrown when uninstalling a module that did not validate. Hierarchy class \Drupal\Core\Extension\ModuleUninstallValidatorException extends \InvalidArgumentException File core/lib/Drupal/Core/Extension/ModuleUninstallValidatorException.php, line 8 Namespace Drupal\Core\Extension Members

ModulesUninstallForm::__construct

public ModulesUninstallForm::__construct(ModuleHandlerInterface $module_handler, ModuleInstallerInterface $module_installer, KeyValueStoreExpirableInterface $key_value_expirable) Constructs a ModulesUninstallForm object. Parameters \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler. \Drupal\Core\Extension\ModuleInstallerInterface $module_installer: The module installer. \Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface $key_value_expirable: The key value

ModulesUninstallForm::validateForm

public ModulesUninstallForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/system/src/Form/ModulesUninstallForm.php, line 167 Class ModulesUninstallForm Provides a form for uninstalling modules. Namespace Drupal\system\Form Code pub

ModulesUninstallForm::submitForm

public ModulesUninstallForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/system/src/Form/ModulesUninstallForm.php, line 178 Class ModulesUninstallForm Provides a form for uninstalling modules. Namespace Drupal\system\Form Code pu

ModulesUninstallForm::getFormId

public ModulesUninstallForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/system/src/Form/ModulesUninstallForm.php, line 68 Class ModulesUninstallForm Provides a form for uninstalling modules. Namespace Drupal\system\Form Code public function getFormId() { return 'system_modules_uninstall'; }

ModulesUninstallForm::create

public static ModulesUninstallForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The ser

ModulesUninstallForm::buildForm

public ModulesUninstallForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/modules/system/src/Form/ModulesUninstallForm.php, line 75 Class ModulesUninstallForm Provides a form for uninstalling modules. Namespace Dr

ModulesUninstallForm::$moduleInstaller

The module installer service. Type: \Drupal\Core\Extension\ModuleInstallerInterface File core/modules/system/src/Form/ModulesUninstallForm.php, line 29 Class ModulesUninstallForm Provides a form for uninstalling modules. Namespace Drupal\system\Form Code protected $moduleInstaller;

ModulesUninstallForm::$moduleHandler

The module handler service. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/system/src/Form/ModulesUninstallForm.php, line 22 Class ModulesUninstallForm Provides a form for uninstalling modules. Namespace Drupal\system\Form Code protected $moduleHandler;