protected function GeneralNumberWithBarIndicatorFormatter::getDescription in Formatter Suite 8
Returns a brief description of the formatter.
Return value
string Returns a brief translated description of the formatter.
Overrides GeneralNumberFormatter::getDescription
File
- src/
Plugin/ Field/ FieldFormatter/ GeneralNumberWithBarIndicatorFormatter.php, line 149
Class
- GeneralNumberWithBarIndicatorFormatter
- Presents an integer as a labeled horizontal bar of varying length.
Namespace
Drupal\formatter_suite\Plugin\Field\FieldFormatterCode
protected function getDescription() {
return $this
->t('Draw a horizontal bar with a length based on the field value.');
}