You are here

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

Class

SiteMail
Site email status check

Namespace

Drupal\prod_check\Plugin\ProdCheck\Settings

Code

public function failMessages() {
  return [
    'value' => $this
      ->t('Dangerous website e-mail address is %mail', [
      '%mail' => $this->dangerous_mail,
    ]),
    'description' => $this
      ->generateDescription($this
      ->title(), 'system.site_information_settings', 'The %link e-mail address should not be a development addresses on production sites!'),
  ];
}