You are here

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

AMP libraries

Expected by AmpFormTrait.

Return value

array The names of the AMP libraries used by this formatter.

1 call to AmpImageCarousel::getLibraries()
AmpImageCarousel::viewElements in src/Plugin/Field/FieldFormatter/AmpImageCarousel.php
Builds a renderable array for a field value.

File

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

Class

AmpImageCarousel
Plugin implementation of the 'amp_image_carousel' formatter.

Namespace

Drupal\amp\Plugin\Field\FieldFormatter

Code

private function getLibraries() {
  return [
    'amp/amp.carousel',
  ];
}