public ConditionBase::condition($field, $value = NULL, $operator = NULL, $langcode = NULL)
Adds a condition.
string|\Drupal\Core\Entity\Query\ConditionInterface $field:
mixed $value:
string $operator:
string $langcode:
Overrides ConditionInterface::condition
\Drupal\Core\Entity\Query\QueryInterface::condition()
public function condition($field, $value = NULL, $operator = NULL, $langcode = NULL) { $this->conditions[] = array( 'field' => $field, '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!ConditionBase.php/function/ConditionBase::condition/8.1.x