SearchQuery::preExecute

public SearchQuery::preExecute(SelectInterface $query = NULL)

Generic preparation and validation for a SELECT query.

Return value

TRUE if the validation was successful, FALSE if not.

Overrides SelectExtender::preExecute

File

core/modules/search/src/SearchQuery.php, line 463

Class

SearchQuery
Search query extender and helper functions.

Namespace

Drupal\search

Code

public function preExecute(SelectInterface $query = NULL) {
  if (!$this->executedPrepare) {
    $this->prepareAndNormalize();
  }

  if (!$this->normalize) {
    return FALSE;
  }

  return parent::preExecute($query);
}
doc_Drupal
2016-10-29 09:40:55
Comments
Leave a Comment

Please login to continue.