You are here

public function DataEntityRow::render in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/rest/src/Plugin/views/row/DataEntityRow.php \Drupal\rest\Plugin\views\row\DataEntityRow::render()

Render a row object. This usually passes through to a theme template of some form, but not always.

Parameters

object $row: A single row of the query result, so an element of $view->result.

Return value

string The rendered output of a single row, used by the style plugin.

Overrides RowPluginBase::render

File

core/modules/rest/src/Plugin/views/row/DataEntityRow.php, line 121

Class

DataEntityRow
Plugin which displays entities as raw data.

Namespace

Drupal\rest\Plugin\views\row

Code

public function render($row) {
  return $this
    ->getEntityTranslation($row->_entity, $row);
}