You are here

public function SearchApiQuery::getGroupType in Search API 8

Returns the group type of the given group.

Parameters

int $group: The group whose type should be retrieved.

Return value

string The group type – "AND" or "OR".

File

src/Plugin/views/query/SearchApiQuery.php, line 1146

Class

SearchApiQuery
Defines a Views query class for searching on Search API indexes.

Namespace

Drupal\search_api\Plugin\views\query

Code

public function getGroupType($group) {
  return !empty($this->where[$group]) ? $this->where[$group] : 'AND';
}