public function AmpPrepareMetadataJsonInterface::getJson in Accelerated Mobile Pages (AMP) 8
Gets the encoded AMP metadata JSON.
Parameters
array $amp_metadata_settings: The array containing AMP metadata settings.
string $canonical_url: The canonical url for this node.
NodeInterface $node: The node object.
Return value
string A JSON encoded string on success or FALSE on failure.
1 method overrides AmpPrepareMetadataJsonInterface::getJson()
- AmpPrepareMetadataJson::getJson in src/
Utility/ AmpPrepareMetadataJson.php - Gets the encoded AMP metadata JSON.
File
- src/
AmpPrepareMetadataJsonInterface.php, line 25
Class
- AmpPrepareMetadataJsonInterface
- Provides an interface for preparing AMP Metadata JSON.
Namespace
Drupal\ampCode
public function getJson(array $amp_metadata_settings, $canonical_url, NodeInterface $node);