You are here

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

Set the content headline token.

Typically this will be a token for either the node title or a separate field containing a short headline. Should be limited to 110 characters.

Parameters

string $content_headline_token: The token for the content headline.

Overrides AmpMetadataInterface::setContentHeadlineToken

File

src/Entity/AmpMetadata.php, line 262

Class

AmpMetadata
Defines the AMP Metadata entity.

Namespace

Drupal\amp\Entity

Code

public function setContentHeadlineToken($content_headline_token) {
  $this->contentHeadlineToken = $content_headline_token;
}