You are here

public function PreviewLink::getGeneratedTimestamp in Preview Link 8

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

Gets the timestamp stamp of when the token was generated.

Return value

int The timestamp.

Overrides PreviewLinkInterface::getGeneratedTimestamp

File

src/Entity/PreviewLink.php, line 80

Class

PreviewLink
Defines the node entity class.

Namespace

Drupal\preview_link\Entity

Code

public function getGeneratedTimestamp() {
  return $this
    ->get('generated_timestamp')->value;
}