You are here

public static function AutoImageStyleResponsive::defaultSettings in Auto image style 8

Defines the default settings for this plugin.

Return value

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

Overrides ResponsiveImageFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/AutoImageStyleResponsive.php, line 25

Class

AutoImageStyleResponsive
Plugin annotation @FieldFormatter( id = "auto_image_style_responsive", label = @Translation("Responsive image auto orientation"), description = @Translation("Display responsive image fields as portrait or landscape style"), field_types = { …

Namespace

Drupal\auto_image_style\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'responsive_image_style_landscape' => '',
    'responsive_image_style_portrait' => '',
  ] + parent::defaultSettings();
}