You are here

public function EntityPagerSetup::setView in Entity Pager 7

Set View.

Set the View object to be processed.

Parameters

object $view: The view object.

1 call to EntityPagerSetup::setView()
EntityPagerSetup::__construct in includes/EntityPagerSetup.inc
Setup Entity Pager with minimum values to work with.

File

includes/EntityPagerSetup.inc, line 121
General setup base Class for Entity Pager module.

Class

EntityPagerSetup
Class EntityPagerSetup.

Code

public function setView($view) {
  $this->view = $view;
  $this->view->result_count = count($this
    ->getViewResult($view));
}