You are here

public function EntityPagerFactory::get in Entity Pager 2.0.x

Same name and namespace in other branches
  1. 8 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.

Return value

\Drupal\entity_pager\EntityPagerInterface The entity pager object.

File

src/EntityPagerFactory.php, line 39

Class

EntityPagerFactory
Factory for entity pager objects.

Namespace

Drupal\entity_pager

Code

public function get(ViewExecutable $view) {
  return new EntityPager($view, $this->token);
}