You are here

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

AMP layouts

Expected by AmpFormTrait.

Return value

array Array of layout options allowed by this component.

File

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

Class

AmpImageCarousel
Plugin implementation of the 'amp_image_carousel' formatter.

Namespace

Drupal\amp\Plugin\Field\FieldFormatter

Code

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