public function ContentEntity::getEntityTypeManager in Search API 8
Retrieves the entity type manager.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.
File
- src/
Plugin/ search_api/ datasource/ ContentEntity.php, line 207
Class
- ContentEntity
- Represents a datasource which exposes the content entities.
Namespace
Drupal\search_api\Plugin\search_api\datasourceCode
public function getEntityTypeManager() {
return $this->entityTypeManager ?: \Drupal::entityTypeManager();
}