You are here

public static function ImageZoomFieldFormatter::defaultSettings in Image Field Zoom 8

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/ImageZoomFieldFormatter.php, line 110
Contains Drupal\imagefield_zoom\Plugin\Field\FieldFormatter\ImageZoomFieldFormatter.

Class

ImageZoomFieldFormatter
Plugin implementation of the 'imagezoom_field_formatter' formatter.

Namespace

Drupal\imagefield_zoom\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'image_style' => '',
    'image_zoom_style' => 'mouseover',
    'image_touchscreen_compatible' => TRUE,
    'image_magnify' => 1,
    'image_fade_duration' => 120,
  ) + parent::defaultSettings();
}