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