You are here

public function WebformNodeUninstallValidator::validate in Webform 6.x

Same name in this branch
  1. 6.x modules/webform_node/src/WebformNodeUninstallValidator.php \Drupal\webform_node\WebformNodeUninstallValidator::validate()
  2. 6.x modules/webform_node/src/ProxyClass/WebformNodeUninstallValidator.php \Drupal\webform_node\ProxyClass\WebformNodeUninstallValidator::validate()
Same name and namespace in other branches
  1. 8.5 modules/webform_node/src/ProxyClass/WebformNodeUninstallValidator.php \Drupal\webform_node\ProxyClass\WebformNodeUninstallValidator::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

modules/webform_node/src/ProxyClass/WebformNodeUninstallValidator.php, line 73

Class

WebformNodeUninstallValidator
Provides a proxy class for \Drupal\webform_node\WebformNodeUninstallValidator.

Namespace

Drupal\webform_node\ProxyClass

Code

public function validate($module) {
  return $this
    ->lazyLoadItself()
    ->validate($module);
}