public function Pagerer::__construct in Pagerer 8
Same name in this branch
- 8 src/Pagerer.php \Drupal\pagerer\Pagerer::__construct()
- 8 src/Plugin/views/pager/Pagerer.php \Drupal\pagerer\Plugin\views\pager\Pagerer::__construct()
Same name and namespace in other branches
- 8.2 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\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
Overrides SqlBase::__construct
File
- src/
Plugin/ views/ pager/ Pagerer.php, line 64
Class
- Pagerer
- The views plugin to handle Pagerer pager.
Namespace
Drupal\pagerer\Plugin\views\pagerCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entity_type_manager;
$this->presetsList = $this->entityTypeManager
->getListBuilder('pagerer_preset');
$this->presetStorage = $this->entityTypeManager
->getStorage('pagerer_preset');
}