You are here

public static function ImageCropWidget::defaultSettings in Image Widget Crop 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldWidget/ImageCropWidget.php \Drupal\image_widget_crop\Plugin\Field\FieldWidget\ImageCropWidget::defaultSettings()

Return value

array<string,string|null|false> The array of settings.

Overrides ImageWidget::defaultSettings

File

src/Plugin/Field/FieldWidget/ImageCropWidget.php, line 98

Class

ImageCropWidget
Plugin implementation of the 'image_widget_crop' widget.

Namespace

Drupal\image_widget_crop\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'crop_preview_image_style' => 'crop_thumbnail',
    'crop_list' => NULL,
    'show_crop_area' => FALSE,
    'show_default_crop' => TRUE,
    'warn_multiple_usages' => TRUE,
  ] + parent::defaultSettings();
}