You are here

public static function JqueryMinicolorsWidget::defaultSettings in jQuery minicolors 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides StringTextfieldWidget::defaultSettings

File

src/Plugin/Field/FieldWidget/JqueryMinicolorsWidget.php, line 25

Class

JqueryMinicolorsWidget
Plugin implementation of the 'jquery_minicolors_widget' widget.

Namespace

Drupal\jquery_minicolors\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return array(
    'size' => 25,
    'placeholder' => '',
    'control' => 'hue',
    'format' => 'hex',
    'opacity' => 0,
    'swatches' => '',
    'position' => 'bottom left',
    'theme' => 'default',
    'animation_speed' => 50,
    'animation_easing' => 'swing',
    'change_delay' => 0,
    'letter_case' => 'lowercase',
    'show_speed' => 100,
    'hide_speed' => 100,
    'keywords' => '',
    'inline' => 0,
  ) + parent::defaultSettings();
}