You are here

public function EntityPagePreview::__construct in Real-time SEO for Drupal 8.2

File

src/Entity/EntityPagePreview.php, line 29

Class

EntityPagePreview
A class to encapsulate entity analysis results.

Namespace

Drupal\yoast_seo\Entity

Code

public function __construct(EntityInterface $entity) {
  $this->entity = $entity;
  $this->language = $entity
    ->language();
}