You are here

public static function SvgImageWidget::defaultSettings in Svg Image 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldWidget/SvgImageWidget.php \Drupal\svg_image\Plugin\Field\FieldWidget\SvgImageWidget::defaultSettings()
  2. 1.x src/Plugin/Field/FieldWidget/SvgImageWidget.php \Drupal\svg_image\Plugin\Field\FieldWidget\SvgImageWidget::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides FileWidget::defaultSettings

File

src/Plugin/Field/FieldWidget/SvgImageWidget.php, line 94

Class

SvgImageWidget
Override plugin of the 'image_image' widget.

Namespace

Drupal\svg_image\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'progress_indicator' => 'throbber',
    'preview_image_style' => 'thumbnail',
  ] + parent::defaultSettings();
}