JsAggregated.php in Production check & Production monitor 8
File
src/Plugin/ProdCheck/Performance/JsAggregated.php
View source
<?php
namespace Drupal\prod_check\Plugin\ProdCheck\Performance;
use Drupal\prod_check\Plugin\ProdCheck\ProdCheckBase;
class JsAggregated extends ProdCheckBase {
public function state() {
return $this->configFactory
->get('system.performance')
->get('js.preprocess');
}
public function successMessages() {
return [
'value' => $this
->t('Enabled'),
'description' => $this
->generateDescription($this
->title(), 'system.performance_settings'),
];
}
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.'),
];
}
}