protected static function GeneralNumberWithBarIndicatorFormatter::getValueLocations in Formatter Suite 8
Returns an array of value locations.
Return value
string[] Returns an associative array with internal names as keys and human-readable translated names as values.
3 calls to GeneralNumberWithBarIndicatorFormatter::getValueLocations()
- GeneralNumberWithBarIndicatorFormatter::sanitizeSettings in src/
Plugin/ Field/ FieldFormatter/ GeneralNumberWithBarIndicatorFormatter.php - Sanitize settings to insure that they are safe and valid.
- GeneralNumberWithBarIndicatorFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ GeneralNumberWithBarIndicatorFormatter.php - Returns a form to configure settings for the formatter.
- GeneralNumberWithBarIndicatorFormatter::settingsSummary in src/
Plugin/ Field/ FieldFormatter/ GeneralNumberWithBarIndicatorFormatter.php - Returns a short summary for the current formatter settings.
File
- src/
Plugin/ Field/ FieldFormatter/ GeneralNumberWithBarIndicatorFormatter.php, line 47
Class
- GeneralNumberWithBarIndicatorFormatter
- Presents an integer as a labeled horizontal bar of varying length.
Namespace
Drupal\formatter_suite\Plugin\Field\FieldFormatterCode
protected static function getValueLocations() {
return [
'none' => t('No value'),
'left' => t('Before bar'),
'right' => t('After bar'),
];
}