public function EntityPagePreview::language in Real-time SEO for Drupal 8.2
Retrieves the language of the preview.
Return value
\Drupal\Core\Language\LanguageInterface The language object.
Overrides EntityPreviewInterface::language
File
- src/
Entity/ EntityPagePreview.php, line 37
Class
- EntityPagePreview
- A class to encapsulate entity analysis results.
Namespace
Drupal\yoast_seo\EntityCode
public function language() {
return $this->language;
}