You are here

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

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

AMP layouts

Expected by AmpFormTrait.

Return value

array Array of layout options allowed by this component.

File

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

Class

AmpImageFormatter
Plugin implementation of the 'amp_image' formatter.

Namespace

Drupal\amp\Plugin\Field\FieldFormatter

Code

private function getLayouts() {
  $options = $this
    ->allLayouts();
  unset($options['container']);
  return $options;
}