Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RowPluginBase.php

function RowPluginBase::render

Renders 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.

8 methods override RowPluginBase::render()
DataEntityRow::render in core/modules/rest/src/Plugin/views/row/DataEntityRow.php
Renders a row object.
DataFieldRow::render in core/modules/rest/src/Plugin/views/row/DataFieldRow.php
Renders a row object.
EntityRow::render in core/modules/views/src/Plugin/views/row/EntityRow.php
Renders a row object.
OpmlFields::render in core/modules/views/src/Plugin/views/row/OpmlFields.php
Renders a row object.
Rss::render in core/modules/node/src/Plugin/views/row/Rss.php
Renders a row object.

... See full list

File

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

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' => $this->field_alias ?? '',
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal