You are here

public static function ImagecacheProportionsFormatter::defaultSettings in Imagecache Proportions 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/ImagecacheProportionsFormatter.php, line 29
Contains \Drupal\imagecache_proportions\Plugin\Field\FieldFormatter.

Class

ImagecacheProportionsFormatter
Plugin implementation of the 'imagecache_proportions' formatter.

Namespace

Drupal\imagecache_proportions\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'image_style_portrait' => '',
    'image_style_landscape' => '',
    'looseness' => 0,
  ) + parent::defaultSettings();
}