You are here

public function MerciBundleUninstallValidator::validate in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2

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/MerciBundleUninstallValidator.php, line 69
Contains \Drupal\merci\MerciBundleUninstallValidator.

Class

MerciBundleUninstallValidator
Prevents forum module from being uninstalled whilst any forum nodes exist or there are any terms in the forum vocabulary.

Namespace

Drupal\merci

Code

public function validate($module) {
  $reasons = [];
  return $reasons;
}