You are here

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

Constructs a new AmpPrepareMetadataJson service.

Parameters

Token $token: The token service.

File

src/Utility/AmpPrepareMetadataJson.php, line 80

Class

AmpPrepareMetadataJson
Class AmpPrepareMetadataJson

Namespace

Drupal\amp\Utility

Code

public function __construct(Token $token) {
  $this->ampMetadataSettings = [];
  $this->canonicalUrl = '';
  $this->node = NULL;
  $this->token = $token;
}