You are here

public function SearchApiAbstractDataSourceController::getEntityType in Search API 7

Retrieves the entity type of items from this datasource.

Return value

string|null An entity type string if the items provided by this datasource are entities; NULL otherwise.

Throws

SearchApiDataSourceException If any error state was encountered.

Overrides SearchApiDataSourceControllerInterface::getEntityType

File

includes/datasource.inc, line 451
Contains the SearchApiDataSourceControllerInterface as well as a default base class.

Class

SearchApiAbstractDataSourceController
Provides a default base class for datasource controllers.

Code

public function getEntityType() {
  return $this->entityType;
}