function SearchPluginBase::isSearchExecutable
Same name in other branches
- 9 core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::isSearchExecutable()
- 8.9.x core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::isSearchExecutable()
- 10 core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::isSearchExecutable()
Overrides SearchInterface::isSearchExecutable
2 calls to SearchPluginBase::isSearchExecutable()
- HelpSearch::execute in core/
modules/ help/ src/ Plugin/ Search/ HelpSearch.php - Executes the search.
- 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 82
Class
- SearchPluginBase
- Defines a base class for plugins wishing to support search.
Namespace
Drupal\search\PluginCode
public function isSearchExecutable() {
// Default implementation suitable for plugins that only use keywords.
return !empty($this->keywords);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.