elseif (!
isset($condition['operator'
])) { // Left hand part is a literal string added with the
// @see ConditionInterface::where() method. Put brackets around
// the snippet and collect the arguments from the value part.
// Also ignore the operator and value parts.
$field_fragment = '(' .
$condition['field'
] . ')';
$arguments +=
$condition['value'
];
$ignore_operator = TRUE;
} else { // Left hand part is a normal field. Add it as is.
$field_fragment =
$connection->
escapeField($condition['field'
]);
$ignore_operator = FALSE;
} // Process operator.
if ($ignore_operator) { $operator =
['operator' => '', 'use_value' => FALSE
];
} else { // Remove potentially dangerous characters.
// If something passed in an invalid character stop early, so we
// don't rely on a broken SQL statement when we would just replace