You are here

public function SearchApiAlterUserDomainAccess::supportsIndex in Domain Integration (Drupal 7) 8

Same name and namespace in other branches
  1. 7 modules/domain_integration_search_api/includes/callback_user_domain_access.inc \SearchApiAlterUserDomainAccess::supportsIndex()

Overrides SearchApiAbstractAlterCallback::supportsIndex().

This plugin only supports indexes containing users.

File

modules/domain_integration_search_api/includes/callback_user_domain_access.inc, line 17
Contains the SearchApiAlterUserDomainAccess class.

Class

SearchApiAlterUserDomainAccess
Adds user domain access information to user indexes.

Code

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