private function getEntityQueryOrCondition(QueryInterface $query, array $fields, $value) {
    $condition = $query->orConditionGroup();
    foreach ($fields as $field) {
      $condition->condition($field, $value);
    }
    return $condition;
  }
private function getEntityQueryOrCondition(QueryInterface $query, array $fields, $value) {
    $condition = $query->orConditionGroup();
    foreach ($fields as $field) {
      $condition->condition($field, $value);
    }
    return $condition;
  }
private function getEntityQueryOrCondition ( QueryInterface $ query , array $ fields , $ value ) { $ condition = $ query -> orConditionGroup ( ) ; foreach ( $ fields as $ field ) { $ condition -> condition ( $ field , $ value ) ; } return $ condition ; }
Make an OR condition for an array of fields and a value.

@param \Drupal\Core\Entity\Query\QueryInterface $query
The QueryInterface for the query.
@param array $fields
The array of field names.
@param string $value
The value to search the fields for.

@return \Drupal\Core\Entity\Query\ConditionInterface
The OR condition to add to your query.
Make an OR condition for an array of fields and a value .