You are here

private function AmpSocialPostFormatter::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/AmpSocialPostFormatter.php, line 37

Class

AmpSocialPostFormatter
Plugin implementation of the 'amp_social_post' formatter.

Namespace

Drupal\amp\Plugin\Field\FieldFormatter

Code

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