You are here

public function SearchExtraTypeSearch::isSearchExecutable in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/search/tests/modules/search_extra_type/src/Plugin/Search/SearchExtraTypeSearch.php \Drupal\search_extra_type\Plugin\Search\SearchExtraTypeSearch::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

1 call to SearchExtraTypeSearch::isSearchExecutable()
SearchExtraTypeSearch::execute in core/modules/search/tests/modules/search_extra_type/src/Plugin/Search/SearchExtraTypeSearch.php
Execute the search.

File

core/modules/search/tests/modules/search_extra_type/src/Plugin/Search/SearchExtraTypeSearch.php, line 36

Class

SearchExtraTypeSearch
Executes a dummy keyword search.

Namespace

Drupal\search_extra_type\Plugin\Search

Code

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