private function AmpImageFormatter::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 AmpImageFormatter::getLibraries()
- AmpImageFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ AmpImageFormatter.php - Builds a renderable array for a field value.
File
- src/
Plugin/ Field/ FieldFormatter/ AmpImageFormatter.php, line 48
Class
- AmpImageFormatter
- Plugin implementation of the 'amp_image' formatter.
Namespace
Drupal\amp\Plugin\Field\FieldFormatterCode
private function getLibraries() {
return [
'amp/amp.image',
];
}