function DefaultSummary::render

Render the display in this style.

Overrides StylePluginBase::render

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/style/DefaultSummary.php, line 80
Definition of Drupal\views\Plugin\views\style\StyleSummaryPluginBase.

Class

DefaultSummary
The default style plugin for summaries.

Namespace

Drupal\views\Plugin\views\style

Code

function render() {
  $rows = array();
  foreach ($this->view->result as $row) {

    // @todo: Include separator as an option.
    $rows[] = $row;
  }
  return array(
    '#theme' => $this
      ->themeFunctions(),
    '#view' => $this->view,
    '#options' => $this->options,
    '#rows' => $rows,
  );
}