public function ContentEntity::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 DatasourcePluginBase::getEntityTypeId
7 calls to ContentEntity::getEntityTypeId()
- ContentEntity::getEntityBundles in src/
Plugin/ search_api/ datasource/ ContentEntity.php - Retrieves all bundles of this datasource's entity type.
- ContentEntity::getEntityStorage in src/
Plugin/ search_api/ datasource/ ContentEntity.php - Retrieves the entity storage.
- ContentEntity::getEntityType in src/
Plugin/ search_api/ datasource/ ContentEntity.php - Returns the definition of this datasource's entity type.
- ContentEntity::getPartialItemIds in src/
Plugin/ search_api/ datasource/ ContentEntity.php - ContentEntity::getPropertyDefinitions in src/
Plugin/ search_api/ datasource/ ContentEntity.php - Retrieves the properties exposed by the underlying complex data type.
File
- src/
Plugin/ search_api/ datasource/ ContentEntity.php, line 742
Class
- ContentEntity
- Represents a datasource which exposes the content entities.
Namespace
Drupal\search_api\Plugin\search_api\datasourceCode
public function getEntityTypeId() {
$plugin_definition = $this
->getPluginDefinition();
return $plugin_definition['entity_type'];
}