You are here

public function DatasourceInterface::getEntityTypeId in Search API 8

Retrieves the entity type ID of items from this datasource, if any.

Return value

string|null If items from this datasource are all entities of a single entity type, that type's ID; NULL otherwise.

1 method overrides DatasourceInterface::getEntityTypeId()
DatasourcePluginBase::getEntityTypeId in src/Datasource/DatasourcePluginBase.php
Retrieves the entity type ID of items from this datasource, if any.

File

src/Datasource/DatasourceInterface.php, line 226

Class

DatasourceInterface
Describes a source for search items.

Namespace

Drupal\search_api\Datasource

Code

public function getEntityTypeId();