You are here

public function JsAggregated::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/Performance/JsAggregated.php, line 41

Class

JsAggregated
JS aggregation check

Namespace

Drupal\prod_check\Plugin\ProdCheck\Performance

Code

public function failMessages() {
  return [
    'value' => $this
      ->t('Disabled'),
    'description' => $this
      ->generateDescription($this
      ->title(), 'system.performance_settings', 'Your %link settings are disabled, they should be enabled on a production environment! This should not cause trouble if you steer clear of @import statements.'),
  ];
}