You are here

public function PreviewLink::getToken in Preview Link 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/PreviewLink.php \Drupal\preview_link\Entity\PreviewLink::getToken()
  2. 2.x src/Entity/PreviewLink.php \Drupal\preview_link\Entity\PreviewLink::getToken()

Gets thew new token.

Return value

string The token.

Overrides PreviewLinkInterface::getToken

1 call to PreviewLink::getToken()
PreviewLink::getUrl in src/Entity/PreviewLink.php
The URL for this preview link for an entity.

File

src/Entity/PreviewLink.php, line 55

Class

PreviewLink
Defines the node entity class.

Namespace

Drupal\preview_link\Entity

Code

public function getToken() : string {
  return $this
    ->get('token')->value;
}