public function GoogleCSESearch::setSearch in Google Custom Search Engine 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/Search/GoogleCSESearch.php \Drupal\google_cse\Plugin\Search\GoogleCSESearch::setSearch()
Sets the keywords, parameters, and attributes to be used by execute().
Parameters
string $keywords: The keywords to use in a search.
array $parameters: Array of parameters as an associative array. This is expected to be the query string from the current request.
array $attributes: Array of attributes, usually from the current request object.
Return value
$this A search plugin object for chaining.
Overrides SearchPluginBase::setSearch
File
- src/
Plugin/ Search/ GoogleCSESearch.php, line 90
Class
- GoogleCSESearch
- Handles searching for node entities using the Search module index.
Namespace
Drupal\google_cse\Plugin\SearchCode
public function setSearch($keywords, array $parameters, array $attributes) {
if (empty($parameters['search_conditions'])) {
$parameters['search_conditions'] = '';
}
parent::setSearch($keywords, $parameters, $attributes);
}