public static function ElementListClassTrait::defaultSettings in Element Class Formatter 8
File
- src/
Plugin/ Field/ FieldFormatter/ ElementListClassTrait.php, line 22
Class
- ElementListClassTrait
- The ElementListClassTrait is used to turn multi-cardinality fields into lists with a class.
Namespace
Drupal\element_class_formatter\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$default_settings = parent::defaultSettings() + [
'list_type' => 'ul',
];
return ElementClassTrait::elementClassDefaultSettings($default_settings);
}