You are here

protected function EntityFieldRenderer::getEntityTranslationRenderer in Search API 8

Returns the current renderer.

Return value

\Drupal\views\Entity\Render\EntityTranslationRendererBase The configured renderer.

Overrides EntityTranslationRenderTrait::getEntityTranslationRenderer

File

src/Plugin/views/EntityFieldRenderer.php, line 108

Class

EntityFieldRenderer
Renders entity fields.

Namespace

Drupal\search_api\Plugin\views

Code

protected function getEntityTranslationRenderer() {
  if (!isset($this->entityTranslationRenderer)) {
    $entity_type = $this
      ->getEntityTypeManager()
      ->getDefinition($this
      ->getEntityTypeId());
    $this->entityTranslationRenderer = new EntityTranslationRenderer($this->view, $this
      ->getLanguageManager(), $entity_type);
  }
  return $this->entityTranslationRenderer;
}