You are here

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

Class

ErrorReporting
User register settings check

Namespace

Drupal\prod_check\Plugin\ProdCheck\Settings

Code

public function failMessages() {
  $link_array = $this
    ->generateLinkArray($this
    ->title(), 'system.logging_settings');
  return [
    'value' => $this->options[$this->current],
    'description' => $this
      ->t('Your %link settings are set to "@current". Are you sure this is what you want and did not mean to use @options?', [
      '%link' => implode($link_array),
      '@current' => $this->options[$this->current],
      '@options' => '"' . implode('" ' . t('or') . ' "', $this
        ->getSelectedOptions()) . '"',
    ]),
  ];
}