protected function AmpPrepareMetadataJson::prepareSchemaType in Accelerated Mobile Pages (AMP) 8
Prepare the schema type.
1 call to AmpPrepareMetadataJson::prepareSchemaType()
- AmpPrepareMetadataJson::prepareMetadataJson in src/
Utility/ AmpPrepareMetadataJson.php - Prepares a metadata array to be ready for JSON conversion.
File
- src/
Utility/ AmpPrepareMetadataJson.php, line 151
Class
- AmpPrepareMetadataJson
- Class AmpPrepareMetadataJson
Namespace
Drupal\amp\UtilityCode
protected function prepareSchemaType() {
if (isset($this->ampMetadataSettings['schema_type']) && !empty($this->ampMetadataSettings['schema_type'])) {
$this->ampPreparedMetadataJson['@type'] = $this->ampMetadataSettings['schema_type'];
}
}