SearchQuery::searchExpression

  1. drupal
    1. 8
    2. 7
Versions
7 public SearchQuery::searchExpression($expression, $module)

Sets up the search query expression.

Parameters

$query A search query string, which can contain options.

$module The search module. This maps to {search_index}.type in the database.

Return value

The SearchQuery object.

Code

modules/search/search.extender.inc, line 136

<?php
public function searchExpression($expression, $module) {
  $this->searchExpression = $expression;
  $this->type = $module;

  return $this;
}
?>