Chris@0: getViewBuilder($this->entityType->id()); Chris@0: Chris@0: /** @var \Drupal\views\ResultRow $row */ Chris@0: foreach ($result as $row) { Chris@0: // @todo Take relationships into account. Chris@0: // See https://www.drupal.org/node/2457999. Chris@0: $entity = $row->_entity; Chris@0: $entity->view = $this->view; Chris@0: $this->build[$entity->id()] = $view_builder->view($entity, $this->view->rowPlugin->options['view_mode'], $this->getLangcode($row)); Chris@0: } Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function render(ResultRow $row) { Chris@0: $entity_id = $row->_entity->id(); Chris@0: return $this->build[$entity_id]; Chris@0: } Chris@0: Chris@0: }