You are here

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

Returns the fail messages for the check

Return value

array 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/ModuleList.php, line 172
Contains \Drupal\prod_check\Plugin\ProdCheck\Modules\ModuleList.

Class

ModuleList
Returns a list of installed modules (and their updates).

Namespace

Drupal\prod_check\Plugin\ProdCheck\Modules

Code

public function failMessages() {
  return [
    'value' => $this
      ->t('List of modules failed to refresh'),
    'description' => $this
      ->t('An error occurred while refreshing the list of modules.'),
  ];
}