function DefaultSummary::render
Same name in other branches
- 9 core/modules/views/src/Plugin/views/style/DefaultSummary.php \Drupal\views\Plugin\views\style\DefaultSummary::render()
- 8.9.x core/modules/views/src/Plugin/views/style/DefaultSummary.php \Drupal\views\Plugin\views\style\DefaultSummary::render()
- 11.x core/modules/views/src/Plugin/views/style/DefaultSummary.php \Drupal\views\Plugin\views\style\DefaultSummary::render()
Overrides StylePluginBase::render
File
-
core/
modules/ views/ src/ Plugin/ views/ style/ DefaultSummary.php, line 74
Class
- DefaultSummary
- The default style plugin for summaries.
Namespace
Drupal\views\Plugin\views\styleCode
public function render() {
$rows = [];
foreach ($this->view->result as $row) {
// @todo Include separator as an option.
$rows[] = $row;
}
return [
'#theme' => $this->themeFunctions(),
'#view' => $this->view,
'#options' => $this->options,
'#rows' => $rows,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.