public function EntityPagerFactory::get in Entity Pager 8
Same name and namespace in other branches
- 2.0.x src/EntityPagerFactory.php \Drupal\entity_pager\EntityPagerFactory::get()
Returns a newly constructed entity pager.
Parameters
\Drupal\views\ViewExecutable $view: The executable to construct an entity pager for.
array $options: (optional) Options for the entity pager.
Return value
\Drupal\entity_pager\EntityPagerInterface The entity pager object.
File
- src/
EntityPagerFactory.php, line 59
Class
- EntityPagerFactory
- Factory for entity pager objects.
Namespace
Drupal\entity_pagerCode
public function get(ViewExecutable $view, array $options = []) {
$options = empty($options) ? $this->default_options : array_merge($this->default_options, $options);
return new EntityPager($view, $options, $this->token);
}