Same name and namespace in other branches
- 8.x-2.x src/Plugin/Field/FieldWidget/ColorFieldWidgetSpectrum.php \Drupal\color_field\Plugin\Field\FieldWidget\ColorFieldWidgetSpectrum::defaultSettings()
1 call to ColorFieldWidgetSpectrum::defaultSettings()
- ColorFieldWidgetSpectrum::formElement dans src/
Plugin/ Field/ FieldWidget/ ColorFieldWidgetSpectrum.php
Fichier
-
src/
Plugin/ Field/ FieldWidget/ ColorFieldWidgetSpectrum.php, line 168
Classe
- ColorFieldWidgetSpectrum
- Plugin implementation of the color_field spectrum widget.
Namespace
Drupal\color_field\Plugin\Field\FieldWidgetCode
public static function defaultSettings() : array {
return [
'show_input' => FALSE,
'show_palette' => FALSE,
'palette' => '',
'show_palette_only' => FALSE,
'show_buttons' => FALSE,
'cancel_text' => 'Cancel',
'choose_text' => 'Choose',
'allow_empty' => FALSE,
] + parent::defaultSettings();
}