public function Query::createConditionGroup in Search API 8
Creates a new condition group to use with this query object.
@todo Add $add_directly = TRUE parameter.
Parameters
string $conjunction: The conjunction to use for the condition group – either 'AND' or 'OR'.
string[] $tags: (optional) Tags to set on the condition group.
Return value
\Drupal\search_api\Query\ConditionGroupInterface A condition group object that is set to use the specified conjunction.
Overrides QueryInterface::createConditionGroup
1 call to Query::createConditionGroup()
- Query::__construct in src/
Query/ Query.php - Constructs a Query object.
File
- src/
Query/ Query.php, line 417
Class
- Query
- Provides a standard implementation for a Search API query.
Namespace
Drupal\search_api\QueryCode
public function createConditionGroup($conjunction = 'AND', array $tags = []) {
return new ConditionGroup($conjunction, $tags);
}