private function StatusPropertyFormatter::getStatusLabels in Apigee Edge 8
Returns labels for indicator statuses.
Return value
array An associative array where keys are the indicator statuses and values are their representative human readable (translateable) labels.
2 calls to StatusPropertyFormatter::getStatusLabels()
- StatusPropertyFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ StatusPropertyFormatter.php - Returns a form to configure settings for the formatter.
- StatusPropertyFormatter::settingsSummary in src/
Plugin/ Field/ FieldFormatter/ StatusPropertyFormatter.php - Returns a short summary for the current formatter settings.
File
- src/
Plugin/ Field/ FieldFormatter/ StatusPropertyFormatter.php, line 117
Class
- StatusPropertyFormatter
- Plugin implementation of the 'status_property' formatter.
Namespace
Drupal\apigee_edge\Plugin\Field\FieldFormatterCode
private function getStatusLabels() : array {
return [
StatusPropertyElement::INDICATOR_STATUS_OK => $this
->t('OK status'),
StatusPropertyElement::INDICATOR_STATUS_WARNING => $this
->t('Warning status'),
StatusPropertyElement::INDICATOR_STATUS_ERROR => $this
->t('Error status'),
];
}