function EntityFieldString::query in EntityFieldQuery Views Backend 8
Build the query based upon the formula
Overrides String::query
File
- src/
Plugin/ views/ argument/ EntityFieldString.php, line 34 - Definition of Drupal\efq_views\Plugin\views\argument\EntityFieldString.
Class
- EntityFieldString
- String argument handler for fields.
Namespace
Drupal\efq_views\Plugin\views\argumentCode
function query() {
$argument = $this->argument;
if (!empty($this->options['transform_dash'])) {
$argument = strtr($argument, '-', ' ');
}
$this->query->query
->fieldCondition($this->definition['field_name'], $this->real_field, $argument, '=');
}