function RowPluginBase::render

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\RowPluginBase::render()
  2. 10 core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\RowPluginBase::render()
  3. 11.x core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\RowPluginBase::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.

10 methods override RowPluginBase::render()
DataEntityRow::render in core/modules/rest/src/Plugin/views/row/DataEntityRow.php
Render a row object. This usually passes through to a theme template of some form, but not always.
DataFieldRow::render in core/modules/rest/src/Plugin/views/row/DataFieldRow.php
Render a row object. This usually passes through to a theme template of some form, but not always.
EntityRow::render in core/modules/views/src/Plugin/views/row/EntityRow.php
Render a row object. This usually passes through to a theme template of some form, but not always.
OpmlFields::render in core/modules/views/src/Plugin/views/row/OpmlFields.php
Render a row object. This usually passes through to a theme template of some form, but not always.
RowTest::render in core/modules/views/tests/modules/views_test_data/src/Plugin/views/row/RowTest.php
Render a row object. This usually passes through to a theme template of some form, but not always.

... See full list

File

core/modules/views/src/Plugin/views/row/RowPluginBase.php, line 166

Class

RowPluginBase
Base class for Views row plugins.

Namespace

Drupal\views\Plugin\views\row

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.