public function SearchApiAlterNodeDomainAccess::supportsIndex in Domain Integration (Drupal 7) 7
Same name and namespace in other branches
- 8 modules/domain_integration_search_api/includes/callback_node_domain_access.inc \SearchApiAlterNodeDomainAccess::supportsIndex()
Overrides SearchApiAbstractAlterCallback::supportsIndex().
This plugin only supports indexes containing nodes.
Overrides SearchApiAbstractAlterCallback::supportsIndex
File
- modules/
domain_integration_search_api/ includes/ callback_node_domain_access.inc, line 17 - Contains the SearchApiAlterNodeDomainAccess class.
Class
- SearchApiAlterNodeDomainAccess
- Adds node domain access information to node indexes.
Code
public function supportsIndex(SearchApiIndex $index) {
// Currently only node access is supported.
return $index
->getEntityType() === 'node';
}