You are here

public static function FastlyImageFormatter::defaultSettings in Fastly 8.3

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/FastlyImageFormatter.php, line 94

Class

FastlyImageFormatter
Plugin implementation of the fastly 'image' formatter.

Namespace

Drupal\fastly\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'width' => '',
    'height' => '',
    'image_link' => '',
    'dpr' => '',
    'fit' => '',
    'bg' => '',
    'bg-color' => '',
    'brightness' => '',
    'contrast' => '',
    'saturation' => '',
    'blur' => '',
    'format' => '',
    'quality' => '',
    'optimize' => '',
    'auto' => '',
    'enable' => '',
    'disable' => '',
    'resize-filter' => '',
  ] + parent::defaultSettings();
}