You are here

public function DbLog::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/Server/DbLog.php, line 76

Class

DbLog
Dblog report

Namespace

Drupal\prod_check\Plugin\ProdCheck\Server

Code

public function failMessages() {
  $link_array = $this
    ->generateLinkArray($this
    ->title(), 'dblog.overview');
  return [
    'value' => $this
      ->t('PHP errors reported.'),
    'description' => $this
      ->formatPlural($this->result, '@count PHP error occuring more than @threshold time(s) has been reported! Check the %link for details!', '@count PHP errors occuring more than @threshold time(s) have been reported! Check the %link for details!', [
      '%link' => implode($link_array),
      '@threshold' => $this->threshold,
    ]),
  ];
}