You are here

public function PreviewLinkInterface::addEntity in Preview Link 2.x

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

Add an entity for this preview link to unlock.

Return value

\Drupal\preview_link\Entity\PreviewLinkInterface Returns the preview link for chaining.

1 method overrides PreviewLinkInterface::addEntity()
PreviewLink::addEntity in src/Entity/PreviewLink.php
Add an entity for this preview link to unlock.

File

src/Entity/PreviewLinkInterface.php, line 89

Class

PreviewLinkInterface
Interface for the preview link entity.

Namespace

Drupal\preview_link\Entity

Code

public function addEntity(EntityInterface $entity);