You are here

public function ModulesBase::state in Production check & Production monitor 8

Calculates the state for the check.

Return value

TRUE if the check passed FALSE otherwise

Overrides ProdCheckInterface::state

File

src/Plugin/ProdCheck/Modules/ModulesBase.php, line 25

Class

ModulesBase
Generic module check class

Namespace

Drupal\prod_check\Plugin\ProdCheck\Modules

Code

public function state() {
  return !$this->moduleHandler
    ->moduleExists($this->module);
}