You are here

public function TokensFilterTrait::preQuery in Tokens in Views Filter Criteria 8

Replace tokens

File

src/TokensFilterTrait.php, line 78

Class

TokensFilterTrait
Filter trait to use for filter plugins.

Namespace

Drupal\token_views_filter

Code

public function preQuery() {
  parent::preQuery();
  if (!empty($this->options['use_tokens'])) {
    $this
      ->replaceTokens($this->value);
  }
}