protected function AmpPrepareMetadataJson::prepareMetadataJson in Accelerated Mobile Pages (AMP) 8
Prepares a metadata array to be ready for JSON conversion.
1 call to AmpPrepareMetadataJson::prepareMetadataJson()
- AmpPrepareMetadataJson::getJson in src/
Utility/ AmpPrepareMetadataJson.php - Gets the encoded AMP metadata JSON.
File
- src/
Utility/ AmpPrepareMetadataJson.php, line 125
Class
- AmpPrepareMetadataJson
- Class AmpPrepareMetadataJson
Namespace
Drupal\amp\UtilityCode
protected function prepareMetadataJson() {
if (empty($this->ampPreparedMetadataJson)) {
$this->ampPreparedMetadataJson = [];
}
$this
->prepareSchemaContext();
$this
->prepareSchemaType();
$this
->prepareMainEntity();
$this
->prepareHeadline();
$this
->prepareAuthor();
$this
->prepareDatePublished();
$this
->prepareDateModified();
$this
->prepareContentImage();
$this
->prepareDescription();
$this
->preparePublisher();
}