You are here

public static function AmpSocialPost::getLibraries in Accelerated Mobile Pages (AMP) 8.3

Provider libraries.

return array Array of libraries required by all supported providers.

3 calls to AmpSocialPost::getLibraries()
AmpSocialPost::preRenderSocialPost in src/Element/AmpSocialPost.php
Pre-render callback.
AmpSocialPostFormatter::getLibraries in src/Plugin/Field/FieldFormatter/AmpSocialPostFormatter.php
AMP libraries.
AmpSocialPostTest::testGetLibraries in tests/src/Unit/AmpSocialPostTest.php
@covers ::getLibraries

File

src/Element/AmpSocialPost.php, line 126

Class

AmpSocialPost
Provides AMP social post elements.

Namespace

Drupal\amp\Element

Code

public static function getLibraries() {
  return [
    'facebook' => 'amp/amp.facebook',
    'twitter' => 'amp/amp.twitter',
    'instagram' => 'amp/amp.instagram',
    'pinterest' => 'amp/amp.pinterest',
  ];
}