You are here

public static function ImageSizesFormatter::defaultSettings in Picture 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/ImageSizesFormatter.php, line 32
Contains \Drupal\picture\Plugin\field\formatter\ImageSizesFormatter.

Class

ImageSizesFormatter
Plugin for image with sizes attribute formatter.

Namespace

Drupal\picture\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'sizes' => '',
    'image_styles' => array(),
    'fallback_image_style' => '',
    'image_link' => '',
  ) + parent::defaultSettings();
}