You are here

public function AlphaPagination::__wakeup in Views Alpha Pagination 8.2

File

src/AlphaPagination.php, line 142

Class

AlphaPagination
A base views handler for alpha pagination.

Namespace

Drupal\alpha_pagination

Code

public function __wakeup() {
  list($name, $display_id, $type, $id, $language) = explode(':', $this->_handler);
  $view = Views::getView($name);
  $view
    ->setDisplay($display_id);
  $this->handler = $view->display_handler
    ->getHandler($type, $id);
  $this->language = $language;
  unset($this->_handler);
}