You are here

public function PreviewLinkInterface::regenerateToken in Preview Link 2.0.x

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

Mark the entity needing a new token. Only updated upon save.

Parameters

bool $needs_new_token: Tell this entity to generate a new token.

Return value

bool TRUE if it was currently marked to generate otherwise FALSE.

1 method overrides PreviewLinkInterface::regenerateToken()
PreviewLink::regenerateToken in src/Entity/PreviewLink.php
Mark the entity needing a new token. Only updated upon save.

File

src/Entity/PreviewLinkInterface.php, line 55

Class

PreviewLinkInterface
Interface for the preview link entity.

Namespace

Drupal\preview_link\Entity

Code

public function regenerateToken($needs_new_token = FALSE) : bool;