You are here

public function Update::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/Update.php, line 46

Class

Update
Update status check

Namespace

Drupal\prod_check\Plugin\ProdCheck\Modules

Code

public function failMessages() {
  return [
    'value' => $this
      ->t('Enabled'),
    'description' => $this
      ->generateDescription($this
      ->title(), 'update.status', 'You have enabled the %link module. It would be better to turn this off on production, contrary to what Drupal core claims, and keep it running on development. Updating and testing should happen on development before deploying to production anyway.'),
  ];
}