Loading core/lib/Drupal/Core/Database/Query/ConditionInterface.php +3 −3 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ interface ConditionInterface { * $operator having a value of =. * * Do not use this method to test for NULL values. Instead, use * QueryConditionInterface::isNull() or QueryConditionInterface::isNotNull(). * ConditionInterface::isNull() or ConditionInterface::isNotNull(). * * To improve readability, the operators EXISTS and NOT EXISTS have their own * utility method defined. Loading @@ -41,7 +41,7 @@ interface ConditionInterface { * operator will also be case insensitive. * * @param string|\Drupal\Core\Database\Query\ConditionInterface $field * The name of the field to check. This can also be QueryConditionInterface * The name of the field to check. This can also be ConditionInterface * in itself. Use where(), if you would like to add a more complex condition * involving operators or functions, or an already compiled condition. * @param string|int|array|\Drupal\Core\Database\Query\SelectInterface|null $value Loading Loading @@ -79,7 +79,7 @@ public function condition($field, $value = NULL, $operator = '='); * A portion of a WHERE clause as a prepared statement. It must use named * placeholders, not ? placeholders. The caller is responsible for providing * unique placeholders that do not interfere with the placeholders generated * by this QueryConditionInterface object. * by this ConditionInterface object. * @param array $args * An associative array of arguments keyed by the named placeholders. * Loading core/modules/views/src/Plugin/views/query/Sql.php +2 −2 Original line number Diff line number Diff line Loading @@ -999,7 +999,7 @@ public function addWhere($group, $field, $value = NULL, $operator = NULL) { * @param array $args * An associative array of arguments. * * @see QueryConditionInterface::where() * @see ConditionInterface::where() */ public function addWhereExpression($group, $snippet, $args = []) { // Ensure all variants of 0 are actually 0. Thus '', 0 and NULL are all Loading Loading @@ -1037,7 +1037,7 @@ public function addWhereExpression($group, $snippet, $args = []) { * @param array $args * An associative array of arguments. * * @see QueryConditionInterface::having() * @see SelectInterface::having() */ public function addHavingExpression($group, $snippet, $args = []) { // Ensure all variants of 0 are actually 0. Thus '', 0 and NULL are all Loading Loading
core/lib/Drupal/Core/Database/Query/ConditionInterface.php +3 −3 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ interface ConditionInterface { * $operator having a value of =. * * Do not use this method to test for NULL values. Instead, use * QueryConditionInterface::isNull() or QueryConditionInterface::isNotNull(). * ConditionInterface::isNull() or ConditionInterface::isNotNull(). * * To improve readability, the operators EXISTS and NOT EXISTS have their own * utility method defined. Loading @@ -41,7 +41,7 @@ interface ConditionInterface { * operator will also be case insensitive. * * @param string|\Drupal\Core\Database\Query\ConditionInterface $field * The name of the field to check. This can also be QueryConditionInterface * The name of the field to check. This can also be ConditionInterface * in itself. Use where(), if you would like to add a more complex condition * involving operators or functions, or an already compiled condition. * @param string|int|array|\Drupal\Core\Database\Query\SelectInterface|null $value Loading Loading @@ -79,7 +79,7 @@ public function condition($field, $value = NULL, $operator = '='); * A portion of a WHERE clause as a prepared statement. It must use named * placeholders, not ? placeholders. The caller is responsible for providing * unique placeholders that do not interfere with the placeholders generated * by this QueryConditionInterface object. * by this ConditionInterface object. * @param array $args * An associative array of arguments keyed by the named placeholders. * Loading
core/modules/views/src/Plugin/views/query/Sql.php +2 −2 Original line number Diff line number Diff line Loading @@ -999,7 +999,7 @@ public function addWhere($group, $field, $value = NULL, $operator = NULL) { * @param array $args * An associative array of arguments. * * @see QueryConditionInterface::where() * @see ConditionInterface::where() */ public function addWhereExpression($group, $snippet, $args = []) { // Ensure all variants of 0 are actually 0. Thus '', 0 and NULL are all Loading Loading @@ -1037,7 +1037,7 @@ public function addWhereExpression($group, $snippet, $args = []) { * @param array $args * An associative array of arguments. * * @see QueryConditionInterface::having() * @see SelectInterface::having() */ public function addHavingExpression($group, $snippet, $args = []) { // Ensure all variants of 0 are actually 0. Thus '', 0 and NULL are all Loading