You are here

public function ModuleUninstallValidatorInterface::validate in Service Container 7

Same name and namespace in other branches
  1. 7.2 src/Extension/ModuleUninstallValidatorInterface.php \Drupal\Core\Extension\ModuleUninstallValidatorInterface::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.

File

src/Extension/ModuleUninstallValidatorInterface.php, line 24
Contains Drupal\Core\Extension\ModuleUninstallValidatorInterface.

Class

ModuleUninstallValidatorInterface
Common interface for module uninstall validators.

Namespace

Drupal\Core\Extension

Code

public function validate($module);