public function DefaultSummary::query

Add anything to the query that we might need to.

Overrides StylePluginBase::query

File

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

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