You are here

private function AmpVideoFormatter::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 AmpVideoFormatter::getLibraries()
AmpVideoFormatter::viewElements in src/Plugin/Field/FieldFormatter/AmpVideoFormatter.php
Builds a renderable array for a field value.

File

src/Plugin/Field/FieldFormatter/AmpVideoFormatter.php, line 48

Class

AmpVideoFormatter
Plugin implementation of the 'amp_video' formatter.

Namespace

Drupal\amp\Plugin\Field\FieldFormatter

Code

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