Same name and namespace in other branches
  1. 8.x-2.x src/Plugin/Field/FieldWidget/ColorFieldWidgetSpectrum.php \Drupal\color_field\Plugin\Field\FieldWidget\ColorFieldWidgetSpectrum::defaultSettings() 1 comment
1 call to ColorFieldWidgetSpectrum::defaultSettings()
ColorFieldWidgetSpectrum::formElement in src/Plugin/Field/FieldWidget/ColorFieldWidgetSpectrum.php

File

src/Plugin/Field/FieldWidget/ColorFieldWidgetSpectrum.php, line 168

Class

ColorFieldWidgetSpectrum
Plugin implementation of the color_field spectrum widget.

Namespace

Drupal\color_field\Plugin\Field\FieldWidget

Code

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();
}