You are here

interface ModuleUninstallValidatorInterface in Service Container 7

Same name and namespace in other branches
  1. 7.2 src/Extension/ModuleUninstallValidatorInterface.php \Drupal\Core\Extension\ModuleUninstallValidatorInterface

Common interface for module uninstall validators.

Hierarchy

Expanded class hierarchy of ModuleUninstallValidatorInterface

All classes that implement ModuleUninstallValidatorInterface

1 file declares its use of ModuleUninstallValidatorInterface
ModuleInstaller.php in src/Extension/ModuleInstaller.php
Contains \Drupal\service_container\Extension\ModuleInstaller.

File

src/Extension/ModuleUninstallValidatorInterface.php, line 13
Contains Drupal\Core\Extension\ModuleUninstallValidatorInterface.

Namespace

Drupal\Core\Extension
View source
interface ModuleUninstallValidatorInterface {

  /**
   * Determines the reasons a module can not be uninstalled.
   *
   * @param string $module
   *   A module name.
   *
   * @return string[]
   *   An array of reasons the module can not be uninstalled, empty if it can.
   */
  public function validate($module);

}

Members

Namesort descending Modifiers Type Description Overrides
ModuleUninstallValidatorInterface::validate public function Determines the reasons a module can not be uninstalled.