Views row plugins

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\views_row_plugins
  2. 8.9.x core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\views_row_plugins
  3. 10 core/modules/views/src/Plugin/views/row/RowPluginBase.php \Drupal\views\Plugin\views\row\views_row_plugins

Plugins that control how Views outputs an individual record.

Row plugins handle rendering each individual record from the view results. For instance, a row plugin could render fields, render an entire entity in a particular view mode, or render the raw data from the results.

Row plugins are used by some (but not all) style plugins. They are not activated unless the style plugin sets them up. See the Views style plugins topic for more information.

Row plugins extend \Drupal\views\Plugin\views\row\RowPluginBase. They must be attributed with \Drupal\views\Attribute\ViewsRow attribute, and they must be in namespace directory Plugin\views\row.

See also

Plugin API

Parent topics

File

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

Classes

Title Sort descending File name Summary
DataEntityRow core/modules/rest/src/Plugin/views/row/DataEntityRow.php Plugin which displays entities as raw data.
DataFieldRow core/modules/rest/src/Plugin/views/row/DataFieldRow.php Plugin which displays fields as raw data.
EntityReference core/modules/views/src/Plugin/views/row/EntityReference.php EntityReference row plugin.
Fields core/modules/views/src/Plugin/views/row/Fields.php The basic 'fields' row plugin.
NodeRow core/modules/node/src/Plugin/views/row/NodeRow.php Plugin which performs a node_view on the resulting object.
RowPluginBase core/modules/views/src/Plugin/views/row/RowPluginBase.php Base class for Views row plugins.
RowTest core/modules/views/tests/modules/views_test_data/src/Plugin/views/row/RowTest.php Provides a general test row plugin.
UserRow core/modules/user/src/Plugin/views/row/UserRow.php A row plugin which renders a user.
ViewsEntityRow core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php Provides views row plugin definitions for all non-special entity types.
ViewsRow core/modules/views/src/Attribute/ViewsRow.php Defines a ViewsRow attribute for plugin discovery.
ViewsRow core/modules/views/src/Annotation/ViewsRow.php Defines a Plugin annotation object for views row plugins.

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