You are here

private function AmpImageFormatter::getLayouts in Accelerated Mobile Pages (AMP) 8.2

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

Return a list of AMP layouts.

2 calls to AmpImageFormatter::getLayouts()
AmpImageFormatter::settingsForm in src/Plugin/Field/FieldFormatter/AmpImageFormatter.php
Returns a form to configure settings for the formatter.
AmpImageFormatter::settingsSummary in src/Plugin/Field/FieldFormatter/AmpImageFormatter.php
Returns a short summary for the current formatter settings.

File

src/Plugin/Field/FieldFormatter/AmpImageFormatter.php, line 90

Class

AmpImageFormatter
Plugin implementation of the 'amp_image' formatter.

Namespace

Drupal\amp\Plugin\Field\FieldFormatter

Code

private function getLayouts() {
  return [
    'nodisplay' => 'nodisplay',
    'fixed' => 'fixed',
    'responsive' => 'responsive',
    'fixed-height' => 'fixed-height',
    'fill' => 'fill',
    'container' => 'container',
  ];
}