You are here

public function PreviewLinkStorageInterface::createPreviewLink in Preview Link 8

Creates a new preview link from a entity type Id and entity Id.

Parameters

string $entity_type_id: The entity type Id.

string $entity_id: The entity id.

Return value

\Drupal\preview_link\Entity\PreviewLinkInterface The preview link entity.

1 method overrides PreviewLinkStorageInterface::createPreviewLink()
PreviewLinkStorage::createPreviewLink in src/PreviewLinkStorage.php
Creates a new preview link from a entity type Id and entity Id.

File

src/PreviewLinkStorageInterface.php, line 57

Class

PreviewLinkStorageInterface
Interface for Preview Link entities.

Namespace

Drupal\preview_link

Code

public function createPreviewLink($entity_type_id, $entity_id);