You are here

public function Pagerer::__construct in Pagerer 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/views/pager/Pagerer.php \Drupal\pagerer\Plugin\views\pager\Pagerer::__construct()

Constructs a Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Pager\PagerManagerInterface $pager_manager: The pager manager.

\Drupal\Core\Pager\PagerParametersInterface $pager_parameters: The pager parameters.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides SqlBase::__construct

File

src/Plugin/views/pager/Pagerer.php, line 70

Class

Pagerer
The views plugin to handle Pagerer pager.

Namespace

Drupal\pagerer\Plugin\views\pager

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, PagerManagerInterface $pager_manager, PagerParametersInterface $pager_parameters, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $pager_manager, $pager_parameters);
  $this->entityTypeManager = $entity_type_manager;
  $this->presetsList = $this->entityTypeManager
    ->getListBuilder('pagerer_preset');
  $this->presetStorage = $this->entityTypeManager
    ->getStorage('pagerer_preset');
}