You are here

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

Class

Contact
Contact status check

Namespace

Drupal\prod_check\Plugin\ProdCheck\Modules

Code

public function failMessages() {
  return [
    'value' => $this
      ->t('Dangerous contact e-mail addresses are %categories', [
      '%categories' => implode(',', $this->matches),
    ]),
    'description' => $this
      ->generateDescription($this
      ->title(), 'entity.contact_form.collection', 'The %link recipient e-mail addresses should not be development addresses on production sites!'),
  ];
}