You are here

public static function AmpImageFormatter::defaultSettings in Accelerated Mobile Pages (AMP) 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/Field/FieldFormatter/AmpImageFormatter.php \Drupal\amp\Plugin\Field\FieldFormatter\AmpImageFormatter::defaultSettings()
  2. 8.2 src/Plugin/Field/FieldFormatter/AmpImageFormatter.php \Drupal\amp\Plugin\Field\FieldFormatter\AmpImageFormatter::defaultSettings()

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/AmpImageFormatter.php, line 31
Contains \Drupal\amp\Plugin\Field\FieldFormatter\AmpImageFormatter.

Class

AmpImageFormatter
Plugin implementation of the 'amp_image' formatter.

Namespace

Drupal\amp\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'amp_layout' => 'responsive',
    'amp_fixed_height' => '300',
  ) + parent::defaultSettings();
}