protected function ContentEntity::getEntityStorage in Search API 8
Retrieves the entity storage.
Return value
\Drupal\Core\Entity\EntityStorageInterface The entity storage.
File
- src/
Plugin/ search_api/ datasource/ ContentEntity.php, line 217
Class
- ContentEntity
- Represents a datasource which exposes the content entities.
Namespace
Drupal\search_api\Plugin\search_api\datasourceCode
protected function getEntityStorage() {
return $this
->getEntityTypeManager()
->getStorage($this
->getEntityTypeId());
}