function StatusReport::getSeverities
Same name in other branches
- 9 core/lib/Drupal/Core/Render/Element/StatusReport.php \Drupal\Core\Render\Element\StatusReport::getSeverities()
- 10 core/lib/Drupal/Core/Render/Element/StatusReport.php \Drupal\Core\Render\Element\StatusReport::getSeverities()
- 11.x 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',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.