function ImageWidget::defaultSettings

Same name in other branches
  1. 9 core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php \Drupal\image\Plugin\Field\FieldWidget\ImageWidget::defaultSettings()
  2. 10 core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php \Drupal\image\Plugin\Field\FieldWidget\ImageWidget::defaultSettings()
  3. 11.x core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php \Drupal\image\Plugin\Field\FieldWidget\ImageWidget::defaultSettings()

Overrides FileWidget::defaultSettings

File

core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php, line 60

Class

ImageWidget
Plugin implementation of the 'image_image' widget.

Namespace

Drupal\image\Plugin\Field\FieldWidget

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.