You are here

public function StylePluginBase::render in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::render()
  2. 9 core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::render()

Render the display in this style.

1 call to StylePluginBase::render()
EntityReference::render in core/modules/views/src/Plugin/views/style/EntityReference.php
Render the display in this style.
6 methods override StylePluginBase::render()
DefaultSummary::render in core/modules/views/src/Plugin/views/style/DefaultSummary.php
Render the display in this style.
EntityReference::render in core/modules/views/src/Plugin/views/style/EntityReference.php
Render the display in this style.
Mapping::render in core/modules/views/src/Plugin/views/style/Mapping.php
Overrides Drupal\views\Plugin\views\style\StylePluginBase::render().
Opml::render in core/modules/views/src/Plugin/views/style/Opml.php
Render the display in this style.
Serializer::render in core/modules/rest/src/Plugin/views/style/Serializer.php
Render the display in this style.

... See full list

File

core/modules/views/src/Plugin/views/style/StylePluginBase.php, line 446

Class

StylePluginBase
Base class for views style plugins.

Namespace

Drupal\views\Plugin\views\style

Code

public function render() {
  if ($this
    ->usesRowPlugin() && empty($this->view->rowPlugin)) {
    trigger_error('Drupal\\views\\Plugin\\views\\style\\StylePluginBase: Missing row plugin', E_WARNING);
    return [];
  }

  // Group the rows according to the grouping instructions, if specified.
  $sets = $this
    ->renderGrouping($this->view->result, $this->options['grouping'], TRUE);
  return $this
    ->renderGroupingSets($sets);
}