You are here

public function AmpPrepareMetadataJson::setAmpMetadataList in Accelerated Mobile Pages (AMP) 8

Sets the list of metadata items.

Overrides AmpPrepareMetadataJsonInterface::setAmpMetadataList

1 call to AmpPrepareMetadataJson::setAmpMetadataList()
AmpPrepareMetadataJson::getJson in src/Utility/AmpPrepareMetadataJson.php
Gets the encoded AMP metadata JSON.

File

src/Utility/AmpPrepareMetadataJson.php, line 379

Class

AmpPrepareMetadataJson
Class AmpPrepareMetadataJson

Namespace

Drupal\amp\Utility

Code

public function setAmpMetadataList() {
  $this->ampMetadataList = [
    '@context',
    'schema_type',
    'mainEntityOfPage',
    'headline',
    'author',
    'datePublished',
    'dateModified',
    'image',
    'description',
    'publisher',
  ];
}