You are here

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

Returns the fail messages for the check

Return value

An associative array containing the following keys

  • value: the value of the check
  • description: the description of the check

Overrides ProdCheckInterface::failMessages

File

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

Class

ModulesBase
Generic module check class

Namespace

Drupal\prod_check\Plugin\ProdCheck\Modules

Code

public function failMessages() {
  return [
    'value' => $this
      ->t('Enabled'),
    'description' => $this
      ->generateDescription($this
      ->title(), $this->routeName, 'You have enabled the %link module. This should not be running on a production environment!'),
  ];
}