You are here

public static function ImageWidget::defaultSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php \Drupal\image\Plugin\Field\FieldWidget\ImageWidget::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

core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php, line 32
Contains \Drupal\image\Plugin\Field\FieldWidget\ImageWidget.

Class

ImageWidget
Plugin implementation of the 'image_image' widget.

Namespace

Drupal\image\Plugin\Field\FieldWidget

Code

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