protected static function GeneralNumberFormatter::getListStyles in Formatter Suite 8
Returns an array of list styles.
Return value
string[] Returns an associative array with internal names as keys and human-readable translated names as values.
3 calls to GeneralNumberFormatter::getListStyles()
- GeneralNumberFormatter::sanitizeSettings in src/
Plugin/ Field/ FieldFormatter/ GeneralNumberFormatter.php - Sanitize settings to insure that they are safe and valid.
- GeneralNumberFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ GeneralNumberFormatter.php - Returns a form to configure settings for the formatter.
- GeneralNumberFormatter::settingsSummary in src/
Plugin/ Field/ FieldFormatter/ GeneralNumberFormatter.php - Returns a short summary for the current formatter settings.
File
- src/
Plugin/ Field/ FieldFormatter/ GeneralNumberFormatter.php, line 156
Class
- GeneralNumberFormatter
- Format a number field with a variety of notation styles and parameters.
Namespace
Drupal\formatter_suite\Plugin\Field\FieldFormatterCode
protected static function getListStyles() {
return [
'span' => t('Single line list'),
'ol' => t('Numbered list'),
'ul' => t('Bulleted list'),
'div' => t('Non-bulleted block list'),
];
}