Same name and namespace in other branches
- 8.x-2.x src/Plugin/Field/FieldFormatter/ColorFieldFormatterSwatch.php \Drupal\color_field\Plugin\Field\FieldFormatter\ColorFieldFormatterSwatch::defaultSettings() 1 comment
File
-
src/
Plugin/ Field/ FieldFormatter/ ColorFieldFormatterSwatch.php, line 145
Class
- ColorFieldFormatterSwatch
- Plugin implementation of the color_field swatch formatter.
Namespace
Drupal\color_field\Plugin\Field\FieldFormatterCode
public static function defaultSettings() : array {
return [
'shape' => 'square',
'width' => 50,
'height' => 50,
'opacity' => TRUE,
'data_attribute' => FALSE,
] + parent::defaultSettings();
}