function DefaultSummary::query

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

Overrides StylePluginBase::query

File

core/modules/views/src/Plugin/views/style/DefaultSummary.php, line 33

Class

DefaultSummary
The default style plugin for summaries.

Namespace

Drupal\views\Plugin\views\style

Code

public function query() {
    if (!empty($this->options['override'])) {
        $this->view
            ->setItemsPerPage(intval($this->options['items_per_page']));
    }
}

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