You are here

public function GoogleCSESearch::isSearchExecutable in Google Custom Search Engine 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/Search/GoogleCSESearch.php \Drupal\google_cse\Plugin\Search\GoogleCSESearch::isSearchExecutable()

Verifies if the given parameters are valid enough to execute a search for.

Return value

bool TRUE if there are keywords or search conditions in the query.

Overrides SearchPluginBase::isSearchExecutable

File

src/Plugin/Search/GoogleCSESearch.php, line 163

Class

GoogleCSESearch
Handles searching for node entities using the Search module index.

Namespace

Drupal\google_cse\Plugin\Search

Code

public function isSearchExecutable() {
  return (bool) ($this->keywords || !empty($this->searchParameters['search_conditions']));
}