You are here

protected function Selective::getSignature in Views Selective Filters 8

Returns a signature for current filter handler.

Return value

string The signature.

2 calls to Selective::getSignature()
Selective::getOids in src/Plugin/views/filter/Selective.php
Returns a list of options for current view, only at runtime.
Selective::query in src/Plugin/views/filter/Selective.php
Add this filter to the query.

File

src/Plugin/views/filter/Selective.php, line 242

Class

Selective
Views filter handler for selective values.

Namespace

Drupal\views_selective_filters\Plugin\views\filter

Code

protected function getSignature() {
  return hash('sha256', serialize([
    'id' => $this->view
      ->id(),
    'args' => $this->view->args,
    'input' => $this->view
      ->getExposedInput(),
    'base_field' => $this->definition['field_base'],
    'real_field' => $this->realField,
    'field' => $this->field,
    'table' => $this->table,
    'ui_name' => $this
      ->adminLabel(),
  ]));
}