You are here

public static function FocalPointImageWidget::defaultSettings in Focal Point 8

Defines the default settings for this plugin.

Return value

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

Overrides ImageWidget::defaultSettings

File

src/Plugin/Field/FieldWidget/FocalPointImageWidget.php, line 30

Class

FocalPointImageWidget
Plugin implementation of the 'image_focal_point' widget.

Namespace

Drupal\focal_point\Plugin\Field\FieldWidget

Code

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