Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Some.php

function Some::query

Overrides PagerPluginBase::query

File

core/modules/views/src/Plugin/views/pager/Some.php, line 68

Class

Some
Plugin for views without pagers.

Namespace

Drupal\views\Plugin\views\pager

Code

public function query() {
    $this->view->query
        ->setLimit($this->options['items_per_page']);
    $this->view->query
        ->setOffset($this->options['offset']);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal