You are here

public function SearchPluginBase::isSearchExecutable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::isSearchExecutable()

Verifies if the values set via setSearch() are valid and sufficient.

Return value

bool TRUE if the search settings are valid and sufficient to execute a search, and FALSE if not.

Overrides SearchInterface::isSearchExecutable

1 call to SearchPluginBase::isSearchExecutable()
UserSearch::execute in core/modules/user/src/Plugin/Search/UserSearch.php
Executes the search.
2 methods override SearchPluginBase::isSearchExecutable()
NodeSearch::isSearchExecutable in core/modules/node/src/Plugin/Search/NodeSearch.php
Verifies if the values set via setSearch() are valid and sufficient.
SearchExtraTypeSearch::isSearchExecutable in core/modules/search/tests/modules/search_extra_type/src/Plugin/Search/SearchExtraTypeSearch.php
Verifies if the given parameters are valid enough to execute a search for.

File

core/modules/search/src/Plugin/SearchPluginBase.php, line 87
Contains \Drupal\search\Plugin\SearchPluginBase.

Class

SearchPluginBase
Defines a base class for plugins wishing to support search.

Namespace

Drupal\search\Plugin

Code

public function isSearchExecutable() {

  // Default implementation suitable for plugins that only use keywords.
  return !empty($this->keywords);
}