You are here

public function AmpFormTrait::allLayouts in Accelerated Mobile Pages (AMP) 8.3

AMP Layouts.

Return value

array The names of all possible AMP layouts, formatted as an option list.

5 calls to AmpFormTrait::allLayouts()
AmpImageCarousel::getLayouts in src/Plugin/Field/FieldFormatter/AmpImageCarousel.php
AMP layouts
AmpImageFormatter::getLayouts in src/Plugin/Field/FieldFormatter/AmpImageFormatter.php
AMP layouts
AmpSocialPostFormatter::getLayouts in src/Plugin/Field/FieldFormatter/AmpSocialPostFormatter.php
AMP layouts.
AmpVideoFormatter::getLayouts in src/Plugin/Field/FieldFormatter/AmpVideoFormatter.php
AMP layouts.
AmpViewsCarouselStyle::getLayouts in src/Plugin/views/style/AmpViewsCarouselStyle.php
AMP layouts

File

src/AmpFormTrait.php, line 83

Class

AmpFormTrait
AMP Form trait.

Namespace

Drupal\amp

Code

public function allLayouts() {
  $layouts = [
    'responsive' => 'responsive',
    'fill' => 'fill',
    'fixed' => 'fixed',
    'fixed-height' => 'fixed-height',
    'flex-item' => 'flex-item',
    'intrinsic' => 'intrinsic',
    'nodisplay' => 'nodisplay',
    'container' => 'container',
  ];
  return $layouts;
}