public ConditionAggregateBase::condition($field, $function = NULL, $value = NULL, $operator = NULL, $langcode = NULL)
Adds a condition.
string|ConditionAggregateInterface $field:
string $function:
mixed $value:
string $operator:
string $langcode:
\Drupal\Core\Entity\Query\ConditionAggregateInterface The called object.
Overrides ConditionAggregateInterface::condition
\Drupal\Core\Entity\Query\QueryInterface::condition()
public function condition($field, $function = NULL, $value = NULL, $operator = NULL, $langcode = NULL) { $this->conditions[] = array( 'field' => $field, 'function' => $function, 'value' => $value, 'operator' => $operator, 'langcode' => $langcode, ); return $this; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Query!ConditionAggregateBase.php/function/ConditionAggregateBase::condition/8.1.x