You are here

public function EntityPagePreview::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.

Overrides EntityPreviewInterface::getEntity

File

src/Entity/EntityPagePreview.php, line 44

Class

EntityPagePreview
A class to encapsulate entity analysis results.

Namespace

Drupal\yoast_seo\Entity

Code

public function getEntity() {
  return $this->entity;
}