You are here

public static function AutoImageStyleDefault::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 ImageFormatter::defaultSettings

File

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

Class

AutoImageStyleDefault
Plugin annotation @FieldFormatter( id = "auto_image_style_default", label = @Translation("Image auto orientation"), description = @Translation("Display image fields as portrait or landscape style"), field_types = { "image", } )

Namespace

Drupal\auto_image_style\Plugin\Field\FieldFormatter

Code

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