public function DiagnosticCheckBase::getSeverityString in Purge 8.3
Get the severity level as unprefixed string.
Return value
string The string comes without the 'SEVERITY_' prefix as on the constants.
Overrides DiagnosticCheckInterface::getSeverityString
1 call to DiagnosticCheckBase::getSeverityString()
- DiagnosticCheckBase::getRequirementsArray in src/
Plugin/ Purge/ DiagnosticCheck/ DiagnosticCheckBase.php - Generates a individual Drupal-like requirements array.
File
- src/
Plugin/ Purge/ DiagnosticCheck/ DiagnosticCheckBase.php, line 117
Class
- DiagnosticCheckBase
- Describes a diagnostic check that tests a specific purging requirement.
Namespace
Drupal\purge\Plugin\Purge\DiagnosticCheckCode
public function getSeverityString() {
$this
->runCheck();
$mapping = [
self::SEVERITY_INFO => 'INFO',
self::SEVERITY_OK => 'OK',
self::SEVERITY_WARNING => 'WARNING',
self::SEVERITY_ERROR => 'ERROR',
];
return $mapping[$this
->getSeverity()];
}