public function GroupContentUninstallValidator::validate in Group 8
Same name in this branch
- 8 src/UninstallValidator/GroupContentUninstallValidator.php \Drupal\group\UninstallValidator\GroupContentUninstallValidator::validate()
- 8 src/ProxyClass/UninstallValidator/GroupContentUninstallValidator.php \Drupal\group\ProxyClass\UninstallValidator\GroupContentUninstallValidator::validate()
Same name and namespace in other branches
- 2.0.x src/ProxyClass/UninstallValidator/GroupContentUninstallValidator.php \Drupal\group\ProxyClass\UninstallValidator\GroupContentUninstallValidator::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
See also
template_preprocess_system_modules_uninstall()
File
- src/
ProxyClass/ UninstallValidator/ GroupContentUninstallValidator.php, line 72
Class
- GroupContentUninstallValidator
- Provides a proxy class for \Drupal\group\UninstallValidator\GroupContentUninstallValidator.
Namespace
Drupal\group\ProxyClass\UninstallValidatorCode
public function validate($module) {
return $this
->lazyLoadItself()
->validate($module);
}