You are here

protected function EntityFieldQuery::containsLeftJoinOperator in RESTful 7.2

Checks if any of the conditions contains a LEFT JOIN operation.

Parameters

string $field_name: If provided only this field will be checked.

Return value

bool TRUE if any of the conditions contain a left join operator.

Overrides EntityFieldQuery::containsLeftJoinOperator

1 call to EntityFieldQuery::containsLeftJoinOperator()
EntityFieldQuery::fieldStorageQuery in src/Util/EntityFieldQuery.php
Copies field_sql_storage_field_storage_query() using left joins some times.
1 method overrides EntityFieldQuery::containsLeftJoinOperator()
EntityFieldQuery::containsLeftJoinOperator in src/Util/EntityFieldQuery.php
Checks if any of the conditions contains a LEFT JOIN operation.

File

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

Class

EntityFieldQuery

Namespace

Drupal\restful\Util

Code

protected function containsLeftJoinOperator($field_name = NULL) {
  foreach ($this->fieldConditions as $field_condition) {
    if ($field_name && $field_condition['field']['field_name'] != $field_name) {
      continue;
    }
    if (in_array($field_condition['operator'], static::$leftJoinOperators)) {
      return TRUE;
    }
  }
  return FALSE;
}