You are here

public function EntityFieldQuery::queryCallback in RESTful 7.2

Overrides EntityFieldQuery::queryCallback

1 method overrides EntityFieldQuery::queryCallback()
EntityFieldQuery::queryCallback in src/Util/EntityFieldQuery.php

File

src/Util/EntityFieldQuery.php, line 53
Contains \Drupal\restful\Util\EntityFieldQuery.

Class

EntityFieldQuery

Namespace

Drupal\restful\Util

Code

public function queryCallback() {

  // Scan all the field conditions to see if there is any operator that needs
  // a left join. If there is none, use the default behavior.
  $left_field_conditions = array_filter($this->fieldConditions, function ($field_condition) {
    return !empty($field_condition['operator']) && in_array($field_condition['operator'], static::$leftJoinOperators);
  });
  return empty($left_field_conditions) ? parent::queryCallback() : array(
    $this,
    'buildQuery',
  );
}