You are here

public function AlphaPagination::getCid in Views Alpha Pagination 8.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 481

Class

AlphaPagination
A base views handler for alpha pagination.

Namespace

Drupal\alpha_pagination

Code

public function getCid() {
  $this
    ->ensureQuery();
  $data = [
    'langcode' => $this->language,
    'view' => $this->handler->view
      ->id(),
    'display' => $this->handler->view
      ->getDisplay()
      ->getPluginId(),
    'query' => $this
      ->getOption('query') ? md5($this
      ->getOption('query')) : '',
    'options' => $this->handler->options,
  ];
  return 'alpha_pagination:' . Crypt::hashBase64(serialize($data));
}