You are here

public function DefaultSummary::render in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/style/DefaultSummary.php \Drupal\views\Plugin\views\style\DefaultSummary::render()

Render the display in this style.

Overrides StylePluginBase::render

File

core/modules/views/src/Plugin/views/style/DefaultSummary.php, line 78
Contains \Drupal\views\Plugin\views\style\DefaultSummary.

Class

DefaultSummary
The default style plugin for summaries.

Namespace

Drupal\views\Plugin\views\style

Code

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