You are here

public function AmpMetadata::setContentAuthorToken in Accelerated Mobile Pages (AMP) 8

Set the content author token.

Typically this will be a token for the node author in order to correctly show the author for each node.

Parameters

string $content_author_token: The token for the content author.

Overrides AmpMetadataInterface::setContentAuthorToken

File

src/Entity/AmpMetadata.php, line 276

Class

AmpMetadata
Defines the AMP Metadata entity.

Namespace

Drupal\amp\Entity

Code

public function setContentAuthorToken($content_author_token) {
  $this->contentAuthorToken = $content_author_token;
}