You are here

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

Retrieves the language of the preview.

Return value

\Drupal\Core\Language\LanguageInterface The language object.

1 method overrides EntityPreviewInterface::language()
EntityPagePreview::language in src/Entity/EntityPagePreview.php
Retrieves the language of the preview.

File

src/Entity/EntityPreviewInterface.php, line 20

Class

EntityPreviewInterface
Defines a common interface for entity preview objects.

Namespace

Drupal\yoast_seo\Entity

Code

public function language();