You are here

public function EntityPreviewInterface::getEntity in Real-time SEO for Drupal 8.2

Gets the entity that this is a preview for.

Return value

\Drupal\Core\Entity\EntityInterface The entity object.

1 method overrides EntityPreviewInterface::getEntity()
EntityPagePreview::getEntity in src/Entity/EntityPagePreview.php
Gets the entity that this is a preview for.

File

src/Entity/EntityPreviewInterface.php, line 28

Class

EntityPreviewInterface
Defines a common interface for entity preview objects.

Namespace

Drupal\yoast_seo\Entity

Code

public function getEntity();