SearchQuery::$keys

Same name and namespace in other branches
  1. 11.x core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::keys
  2. 10 core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::keys
  3. 9 core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::keys
  4. 8.9.x core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::keys

Positive and negative search keys.

Type: array

File

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

Class

SearchQuery
Do a query on the full-text search index for a word or words.

Code

protected $keys = array(
  'positive' => array(),
  'negative' => array(),
);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.