protected static function EntityListTrait::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 EntityListTrait::getListStyles()
- EntityListTrait::sanitizeListSettings in src/
Plugin/ Field/ FieldFormatter/ EntityListTrait.php - Check current settings and insure they make sense.
- EntityListTrait::settingsForm in src/
Plugin/ Field/ FieldFormatter/ EntityListTrait.php - EntityListTrait::settingsSummary in src/
Plugin/ Field/ FieldFormatter/ EntityListTrait.php
File
- src/
Plugin/ Field/ FieldFormatter/ EntityListTrait.php, line 44
Class
- EntityListTrait
- Formats multiple fields as a list.
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 list'),
];
}