public static function StatusReport::getSeverities in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Render/Element/StatusReport.php \Drupal\Core\Render\Element\StatusReport::getSeverities()
Gets the severities.
Return value
array
2 calls to StatusReport::getSeverities()
- StatusReport::preRenderGroupRequirements in core/
lib/ Drupal/ Core/ Render/ Element/ StatusReport.php - #pre_render callback to group requirements.
- StatusReportPage::preRenderCounters in core/
modules/ system/ src/ Element/ StatusReportPage.php - #pre_render callback to create counter elements.
File
- core/
lib/ Drupal/ Core/ Render/ Element/ StatusReport.php, line 68
Class
- StatusReport
- Creates status report page element.
Namespace
Drupal\Core\Render\ElementCode
public static function getSeverities() {
return [
REQUIREMENT_INFO => [
'title' => t('Checked', [], [
'context' => 'Examined',
]),
'status' => 'checked',
],
REQUIREMENT_OK => [
'title' => t('OK'),
'status' => 'ok',
],
REQUIREMENT_WARNING => [
'title' => t('Warnings found'),
'status' => 'warning',
],
REQUIREMENT_ERROR => [
'title' => t('Errors found'),
'status' => 'error',
],
];
}