You are here

public static function ColorFieldSwatchFormatter::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/FieldFormatter/ColorFieldSwatchFormatter.php, line 31
Contains Drupal\color_field\Plugin\Field\FieldFormatter\ColorFieldSwatchFormatter.

Class

ColorFieldSwatchFormatter
Plugin implementation of the 'color_field_swatch' formatter.

Namespace

Drupal\color_field\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'width' => 50,
    'height' => 50,
  ) + parent::defaultSettings();
}