You are here

public function AlphaPagination::getCid in Views Alpha Pagination 7.2

Retrieves a cache identifier for the view, display and query, if set.

Return value

string A cache identifier.

1 call to AlphaPagination::getCid()
AlphaPagination::getCharacters in src/AlphaPagination.php
Retrieves the characters used to populate the pagination item list.

File

src/AlphaPagination.php, line 370

Class

AlphaPagination
A base views handler for alpha pagination.

Code

public function getCid() {
  global $language;
  $this
    ->ensureQuery();
  $data = [
    'langcode' => $language->language,
    'view' => $this->handler->view->name,
    'display' => $this->handler->view->current_display,
    'query' => $this
      ->getOption('query') ? md5($this
      ->getOption('query')) : '',
    'options' => $this->handler->options,
  ];
  return 'alpha_pagination:' . drupal_hash_base64(serialize($data));
}