public function SearchApiAlterAddHierarchy::supportsIndex in Search API 7
Overrides SearchApiAbstractAlterCallback::supportsIndex().
Returns TRUE only if any hierarchical fields are available.
Overrides SearchApiAbstractAlterCallback::supportsIndex
File
- includes/
callback_add_hierarchy.inc, line 27 - Contains SearchApiAlterAddHierarchy.
Class
- SearchApiAlterAddHierarchy
- Adds all ancestors for hierarchical fields.
Code
public function supportsIndex(SearchApiIndex $index) {
return (bool) $this
->getHierarchicalFields();
}