/** * Retrieves the filter object associated with this search query. * * @return \Drupal\search_api\Query\ConditionGroupInterface * This object's associated filter object. * * @see \Drupal\search_api\Query\QueryInterface::getConditionGroup() */ public function getFilter() { if (!$this->shouldAbort()) { return $this->query->getConditionGroup(); } return NULL; }
/** * {@inheritdoc} */ public function preprocessSearchQuery(QueryInterface $query) { $keys =& $query->getKeys(); if (isset($keys)) { $this->processKeys($keys); } $conditions = $query->getConditionGroup(); $this->processConditions($conditions->getConditions()); }