You are here

public static function SvgImageFieldWidget::defaultSettings in SVG Image Field 8

Same name and namespace in other branches
  1. 2.1.x src/Plugin/Field/FieldWidget/SvgImageFieldWidget.php \Drupal\svg_image_field\Plugin\Field\FieldWidget\SvgImageFieldWidget::defaultSettings()
  2. 2.0.x src/Plugin/Field/FieldWidget/SvgImageFieldWidget.php \Drupal\svg_image_field\Plugin\Field\FieldWidget\SvgImageFieldWidget::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/SvgImageFieldWidget.php, line 72

Class

SvgImageFieldWidget
Plugin implementation of the 'image_image' widget.

Namespace

Drupal\svg_image_field\Plugin\Field\FieldWidget

Code

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