public function ModuleUninstallValidatorInterface::validate in Service Container 7.2
Same name and namespace in other branches
- 7 src/Extension/ModuleUninstallValidatorInterface.php \Drupal\Core\Extension\ModuleUninstallValidatorInterface::validate()
Determines the reasons a module can not be uninstalled.
Parameters
string $module: A module name.
Return value
string[] An array of reasons the module can not be uninstalled, empty if it can.
File
- src/
Extension/ ModuleUninstallValidatorInterface.php, line 24 - Contains Drupal\Core\Extension\ModuleUninstallValidatorInterface.
Class
- ModuleUninstallValidatorInterface
- Common interface for module uninstall validators.
Namespace
Drupal\Core\ExtensionCode
public function validate($module);