function SearchNode::isSearchExecutable
Same name and namespace in other branches
- 11.x core/modules/search/modules/search_node/src/Plugin/Search/SearchNode.php \Drupal\search_node\Plugin\Search\SearchNode::isSearchExecutable()
Overrides SearchPluginBase::isSearchExecutable
1 call to SearchNode::isSearchExecutable()
- SearchNode::execute in core/
modules/ search/ modules/ search_node/ src/ Plugin/ Search/ SearchNode.php - Executes the search.
File
-
core/
modules/ search/ modules/ search_node/ src/ Plugin/ Search/ SearchNode.php, line 144
Class
- SearchNode
- Handles searching for node entities using the Search module index.
Namespace
Drupal\search_node\Plugin\SearchCode
public function isSearchExecutable() : bool {
// Node search is executable if we have keywords or an advanced parameter.
// At least, we should parse out the parameters and see if there are any
// keyword matches in that case, rather than just printing out the
// "Enter keywords" message.
return !empty($this->keywords) || isset($this->searchParameters['f']) && count($this->searchParameters['f']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.