public function TokensStringFilter::replaceTokens in Tokens in Views Filter Criteria 8
Replace tokens in filters.
Parameters
mixed $value: Array of values `min`, `max` and `value` or just value.
Overrides TokenViewsFilterPluginInterface::replaceTokens
File
- src/
Plugin/ views/ filter/ token/ TokensStringFilter.php, line 23
Class
- TokensStringFilter
- Extending basic string filter to use tokens as value.
Namespace
Drupal\token_views_filter\Plugin\views\filter\tokenCode
public function replaceTokens(&$value) {
$value = $this->token
->replace($value, [
'view' => $this->view,
], [
'clear' => TRUE,
]);
}