public function Result::getTerms in Search API Solr 8
Same name and namespace in other branches
- 8.3 src/Solarium/Autocomplete/Result.php \Drupal\search_api_solr\Solarium\Autocomplete\Result::getTerms()
- 8.2 src/Solarium/Autocomplete/Result.php \Drupal\search_api_solr\Solarium\Autocomplete\Result::getTerms()
- 4.x src/Solarium/Autocomplete/Result.php \Drupal\search_api_solr\Solarium\Autocomplete\Result::getTerms()
Get terms component result.
This is a convenience method that maps presets to getComponent.
Return value
\Solarium\Component\Result\Terms\Result|null The terms component result.
File
- src/
Solarium/ Autocomplete/ Result.php, line 83
Class
- Result
- Autocomplete query result.
Namespace
Drupal\search_api_solr\Solarium\AutocompleteCode
public function getTerms() {
return $this
->getComponent(ComponentAwareQueryInterface::COMPONENT_TERMS);
}