You are here

function EntityString::query in EntityFieldQuery Views Backend 8

Build the query based upon the formula

Overrides String::query

1 method overrides EntityString::query()
EntityBundle::query in src/Plugin/views/argument/EntityBundle.php
Build the query based upon the formula

File

src/Plugin/views/argument/EntityString.php, line 34
Definition of Drupal\efq_views\Plugin\views\argument\EntityString.

Class

EntityString
String Argument handler for entity properties.

Namespace

Drupal\efq_views\Plugin\views\argument

Code

function query($group_by = false) {
  $argument = $this->argument;
  if (!empty($this->options['transform_dash'])) {
    $argument = strtr($argument, '-', ' ');
  }
  $this->query->query
    ->propertyCondition($this->real_field, $argument, '=');
}