protected function ContentEntity::getEntityType in Search API 8
Returns the definition of this datasource's entity type.
Return value
\Drupal\Core\Entity\EntityTypeInterface The entity type definition.
1 call to ContentEntity::getEntityType()
- ContentEntity::getPartialItemIds in src/
Plugin/ search_api/ datasource/ ContentEntity.php
File
- src/
Plugin/ search_api/ datasource/ ContentEntity.php, line 227
Class
- ContentEntity
- Represents a datasource which exposes the content entities.
Namespace
Drupal\search_api\Plugin\search_api\datasourceCode
protected function getEntityType() {
return $this
->getEntityTypeManager()
->getDefinition($this
->getEntityTypeId());
}