You are here

public function TranslationLanguageRenderer::render in Views Parity Row 8

Renders entity data.

Parameters

\Drupal\views\ResultRow $row: A single row of the query result.

Return value

array A renderable array for the entity data contained in the result row.

Overrides RendererBase::render

File

src/Plugin/views/Entity/Render/TranslationLanguageRenderer.php, line 40

Class

TranslationLanguageRenderer
Renders entities in the current language.

Namespace

Drupal\views_parity_row\Plugin\views\Entity\Render

Code

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