public function ConditionGroup::__clone in Search API 8
Implements the magic __clone() method.
Takes care to clone nested conditions and condition groups, too.
File
- src/
Query/ ConditionGroup.php, line 99
Class
- ConditionGroup
- Provides a standard implementation for a Search API query condition group.
Namespace
Drupal\search_api\QueryCode
public function __clone() {
foreach ($this->conditions as $i => $condition) {
$this->conditions[$i] = clone $condition;
}
}