function StylePluginBase::render

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

Render the display in this style.

File

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

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);
}

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