function NodeSearch::isSearchExecutable
Same name in other branches
- 9 core/modules/node/src/Plugin/Search/NodeSearch.php \Drupal\node\Plugin\Search\NodeSearch::isSearchExecutable()
- 8.9.x core/modules/node/src/Plugin/Search/NodeSearch.php \Drupal\node\Plugin\Search\NodeSearch::isSearchExecutable()
- 11.x core/modules/node/src/Plugin/Search/NodeSearch.php \Drupal\node\Plugin\Search\NodeSearch::isSearchExecutable()
Overrides SearchPluginBase::isSearchExecutable
1 call to NodeSearch::isSearchExecutable()
- NodeSearch::execute in core/
modules/ node/ src/ Plugin/ Search/ NodeSearch.php - Executes the search.
File
-
core/
modules/ node/ src/ Plugin/ Search/ NodeSearch.php, line 220
Class
- NodeSearch
- Handles searching for node entities using the Search module index.
Namespace
Drupal\node\Plugin\SearchCode
public function isSearchExecutable() {
// 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.