You are here

public function None::init in Views (for Drupal 7) 8.3

Initialize the plugin.

Parameters

$view: The view object.

$display: The display handler.

Overrides PagerPluginBase::init

File

lib/Drupal/views/Plugin/views/pager/None.php, line 28
Definition of Drupal\views\Plugin\views\pager\None.

Class

None
Plugin for views without pagers.

Namespace

Drupal\views\Plugin\views\pager

Code

public function init(ViewExecutable $view, &$display, $options = array()) {
  parent::init($view, $display, $options);

  // If the pager is set to none, then it should show all items.
  $this
    ->set_items_per_page(0);
}