public function DiagnosticCheckBase::getRecommendation in Purge 8.3
Get a recommendation matching the severity level, may return NULL.
Return value
null|\Drupal\Core\StringTranslation\TranslatableMarkup Null when no recommendation exists, else a translated string.
Overrides DiagnosticCheckInterface::getRecommendation
1 call to DiagnosticCheckBase::getRecommendation()
- DiagnosticCheckBase::getRequirementsArray in src/
Plugin/ Purge/ DiagnosticCheck/ DiagnosticCheckBase.php - Generates a individual Drupal-like requirements array.
File
- src/
Plugin/ Purge/ DiagnosticCheck/ DiagnosticCheckBase.php, line 131
Class
- DiagnosticCheckBase
- Describes a diagnostic check that tests a specific purging requirement.
Namespace
Drupal\purge\Plugin\Purge\DiagnosticCheckCode
public function getRecommendation() {
$this
->runCheck();
if ($this->recommendation) {
return $this->recommendation;
}
else {
return $this
->getDescription();
}
}