You are here

protected function AmpPrepareMetadataJson::prepareSchemaContext in Accelerated Mobile Pages (AMP) 8

Prepare the schema context.

1 call to AmpPrepareMetadataJson::prepareSchemaContext()
AmpPrepareMetadataJson::prepareMetadataJson in src/Utility/AmpPrepareMetadataJson.php
Prepares a metadata array to be ready for JSON conversion.

File

src/Utility/AmpPrepareMetadataJson.php, line 144

Class

AmpPrepareMetadataJson
Class AmpPrepareMetadataJson

Namespace

Drupal\amp\Utility

Code

protected function prepareSchemaContext() {
  $this->ampPreparedMetadataJson['@context'] = 'http://schema.org';
}