Add a condition to the query or a condition group.
$entity_ids = Drupal::entityQuery($entity_type)
->condition('greetings', 'merhaba', '=', 'tr');
->condition('greetings.value', 'siema', '=', 'pl');
->execute();
$entity_ids = $query->execute();
$field: Name of the field being queried. Some examples:
For example, to find all entities containing both the Turkish 'merhaba' and the Polish 'siema' within a 'greetings' text field:
$value: The value for $field. In most cases, this is a scalar. For more complex options, it is an array. The meaning of each element in the array is dependent on $operator.
$operator: Possible values:
$langcode: Language code (optional).
\Drupal\Core\Entity\Query\QueryInterface
Drupal\Core\Entity\Query\andConditionGroup
Drupal\Core\Entity\Query\orConditionGroup
public function condition($field, $value = NULL, $operator = NULL, $langcode = NULL);