You are here

public function PoormansCron::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/Settings/PoormansCron.php, line 53

Class

PoormansCron
Poormans cron check.

Namespace

Drupal\prod_check\Plugin\ProdCheck\Settings

Code

public function failMessages() {
  return [
    'value' => $this
      ->t("Drupal's built in cron mechanism is set to run every %interval.", [
      '%interval' => $this->dateFormatter
        ->formatInterval($this->cronInterval),
    ]),
    'description' => $this
      ->generateDescription($this
      ->title(), 'system.cron_settings', 'The %link interval should be disabled if you have also setup a crontab or scheduled task for this to avoid running the cron more often than you have planned to!'),
  ];
}