public ConditionAggregateBase::condition($field, $function = NULL, $value = NULL, $operator = NULL, $langcode = NULL)
Adds a condition.
Parameters
string|ConditionAggregateInterface $field:
string $function:
mixed $value:
string $operator:
string $langcode:
Return value
\Drupal\Core\Entity\Query\ConditionAggregateInterface The called object.
Overrides ConditionAggregateInterface::condition
See also
\Drupal\Core\Entity\Query\QueryInterface::condition()
File
- core/lib/Drupal/Core/Entity/Query/ConditionAggregateBase.php, line 13
Class
- ConditionAggregateBase
- Defines a common base class for all aggregation entity condition implementations.
Namespace
Drupal\Core\Entity\Query
Code
1 2 3 4 5 6 7 8 9 10 11 | 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 ; } |
Please login to continue.