You are here

public function PreviewLink::getToken in Preview Link 8

Same name and namespace in other branches
  1. 2.x src/Entity/PreviewLink.php \Drupal\preview_link\Entity\PreviewLink::getToken()
  2. 2.0.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.

File

src/Entity/PreviewLink.php, line 54

Class

PreviewLink
Defines the node entity class.

Namespace

Drupal\preview_link\Entity

Code

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