You are here

public function DatasourcePluginBase::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.

Overrides DatasourceInterface::getEntityTypeId

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

File

src/Datasource/DatasourcePluginBase.php, line 150

Class

DatasourcePluginBase
Defines a base class from which other datasources may extend.

Namespace

Drupal\search_api\Datasource

Code

public function getEntityTypeId() {
  return NULL;
}