You are here

public function SearchApiAlterCommentAccess::supportsIndex in Search API 7

Overrides SearchApiAlterNodeAccess::supportsIndex().

Returns TRUE only for indexes on comments.

Overrides SearchApiAlterNodeAccess::supportsIndex

File

includes/callback_comment_access.inc, line 17
Contains the SearchApiAlterCommentAccess class.

Class

SearchApiAlterCommentAccess
Adds node access information to comment indexes.

Code

public function supportsIndex(SearchApiIndex $index) {
  return $index
    ->getEntityType() === 'comment';
}