public function None::init

Overrides \Drupal\views\Plugin\views\PluginBase::init().

Overrides PluginBase::init

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/None.php, line 32
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, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);

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