public function SearchApiAlterAddUserContent::supportsIndex in Search API 7
Implements SearchApiAlterCallbackInterface::supportsIndex().
The default implementation always returns TRUE.
Overrides SearchApiAbstractAlterCallback::supportsIndex
File
- includes/
callback_user_content.inc, line 16 - Contains SearchApiAlterAddUserContent.
Class
- SearchApiAlterAddUserContent
- Adds the nodes created by the indexed user for indexing.
Code
public function supportsIndex(SearchApiIndex $index) {
return $index
->getEntityType() === 'user';
}