public function SearchApiAlterNodeAccess::supportsIndex in Search API 7
Overrides SearchApiAbstractAlterCallback::supportsIndex().
Returns TRUE only for indexes on nodes.
Overrides SearchApiAbstractAlterCallback::supportsIndex
1 method overrides SearchApiAlterNodeAccess::supportsIndex()
- SearchApiAlterCommentAccess::supportsIndex in includes/
callback_comment_access.inc - Overrides SearchApiAlterNodeAccess::supportsIndex().
File
- includes/
callback_node_access.inc, line 17 - Contains the SearchApiAlterNodeAccess class.
Class
- SearchApiAlterNodeAccess
- Adds node access information to node indexes.
Code
public function supportsIndex(SearchApiIndex $index) {
// Currently only node access is supported.
return $index
->getEntityType() === 'node';
}