function InstallProfileUninstallValidator::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. Each reason should not end with any punctuation since multiple reasons can be displayed together.
Overrides ModuleUninstallValidatorInterface::validate
File
-
core/
lib/ Drupal/ Core/ ProxyClass/ Extension/ InstallProfileUninstallValidator.php, line 73
Class
- InstallProfileUninstallValidator
- Provides a proxy class for \Drupal\Core\Extension\InstallProfileUninstallValidator.
Namespace
Drupal\Core\ProxyClass\ExtensionCode
public function validate($module) {
return $this->lazyLoadItself()
->validate($module);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.