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.

6 methods override RowPluginBase::render()
EntityRow::render in drupal/core/modules/system/lib/Drupal/system/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.
Rss::render in drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/row/Rss.php
Render a row object. This usually passes through to a theme template of some form, but not always.
RssFields::render in drupal/core/modules/views/lib/Drupal/views/Plugin/views/row/RssFields.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 161
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 : '',
  );
}