function RowPluginBase::render

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

Parameters

stdClass $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.

8 methods override RowPluginBase::render()
DataEntityRow::render in drupal/core/modules/rest/lib/Drupal/rest/Plugin/views/row/DataEntityRow.php
Overrides \Drupal\views\Plugin\views\row\RowPluginBase::render().
DataFieldRow::render in drupal/core/modules/rest/lib/Drupal/rest/Plugin/views/row/DataFieldRow.php
Overrides \Drupal\views\Plugin\views\row\RowPluginBase::render().
EntityRow::render in drupal/core/modules/views/lib/Drupal/views/Plugin/views/row/EntityRow.php
Overrides Drupal\views\Plugin\views\row\RowPluginBase::render().
RowTest::render in drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/row/RowTest.php
Overrides Drupal\views\Plugin\views\row\RowPluginBase::render()
Rss::render in drupal/core/modules/node/lib/Drupal/node/Plugin/views/row/Rss.php
Render a row object. This usually passes through to a theme template of some form, but not always.

... See full list

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/row/RowPluginBase.php, line 150
Definition of Drupal\views\Plugin\views\row\RowPluginBase.

Class

RowPluginBase
Default plugin to view a single row of a table. This is really just a wrapper around a theme function.

Namespace

Drupal\views\Plugin\views\row

Code

function render($row) {
  return array(
    '#theme' => $this
      ->themeFunctions(),
    '#view' => $this->view,
    '#options' => $this->options,
    '#row' => $row,
    '#field_alias' => isset($this->field_alias) ? $this->field_alias : '',
  );
}