You are here

public function EntityPager::__construct in Entity Pager 2.0.x

Same name and namespace in other branches
  1. 8 src/EntityPager.php \Drupal\entity_pager\EntityPager::__construct()

EntityPager constructor.

Parameters

\Drupal\views\ViewExecutable $view: The view object.

\Drupal\Core\Utility\Token $token: The token service.

File

src/EntityPager.php, line 49

Class

EntityPager
Entity pager object.

Namespace

Drupal\entity_pager

Code

public function __construct(ViewExecutable $view, Token $token) {
  $this->view = $view;
  $this->options = $view->style_plugin->options;
  $this->token = $token;
}