function SearchNode::isSearchExecutable
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.