DiagnosticsInstalledWarning.php in Acquia Content Hub 8
File
acquia_contenthub_diagnostic/src/Plugin/ContentHubRequirement/DiagnosticsInstalledWarning.php
View source
<?php
namespace Drupal\acquia_contenthub_diagnostic\Plugin\ContentHubRequirement;
use Drupal\acquia_contenthub_diagnostic\ContentHubRequirementBase;
class DiagnosticsInstalledWarning extends ContentHubRequirementBase {
public function verify() {
$this
->setValue($this
->t('Diagnostics module is installed.'));
$this
->setDescription($this
->t('Diagnostics are run on every Drupal bootstrap. It is recommended that this module be turned off on production sites for better site performance.'));
return REQUIREMENT_WARNING;
}
}