You are here

public static function ColorFieldDefaultWidget::defaultSettings in Color Field 8

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldWidget/ColorFieldDefaultWidget.php, line 31
Contains Drupal\color_field\Plugin\Field\FieldWidget\ColorFieldDefaultWidget.

Class

ColorFieldDefaultWidget
Plugin implementation of the 'color_field_default' widget.

Namespace

Drupal\color_field\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return array(
    'placeholder_color' => '',
    'placeholder_opacity' => '',
  ) + parent::defaultSettings();
}