function EntityTranslationRendererBase::render

Same name in other branches
  1. 9 core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php \Drupal\views\Entity\Render\EntityTranslationRendererBase::render()
  2. 10 core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php \Drupal\views\Entity\Render\EntityTranslationRendererBase::render()
  3. 11.x core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php \Drupal\views\Entity\Render\EntityTranslationRendererBase::render()

Overrides RendererBase::render

1 method overrides EntityTranslationRendererBase::render()
TranslationLanguageRenderer::render in core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php
Renders entity data.

File

core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php, line 49

Class

EntityTranslationRendererBase
Defines a base class for entity translation renderers.

Namespace

Drupal\views\Entity\Render

Code

public function render(ResultRow $row) {
    $entity_id = $row->_entity
        ->id();
    return $this->build[$entity_id];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.