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()

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 : '',
  );
}