You are here

public function ContentUninstallValidator::validate in CiviCRM Entity 8.3

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 ContentUninstallValidator::validate

See also

template_preprocess_system_modules_uninstall()

File

src/Entity/ContentUninstallValidator.php, line 28

Class

ContentUninstallValidator
Class ContentUninstallValidator.

Namespace

Drupal\civicrm_entity\Entity

Code

public function validate($module) {
  if ($module === 'civicrm_entity') {
    return [];
  }
  return parent::validate($module);
}