public function None::init

Initialize the plugin.

Parameters

$view: The view object.

$display: The display handler.

Overrides PagerPluginBase::init

File

drupal/core/modules/views/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);
}