public function SearchApiRelationship::getEntityTypeManager in Search API 8
Retrieves the entity type manager.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.
File
- src/
Plugin/ views/ relationship/ SearchApiRelationship.php, line 31
Class
- SearchApiRelationship
- Views relationship plugin for datasources.
Namespace
Drupal\search_api\Plugin\views\relationshipCode
public function getEntityTypeManager() {
return $this->entityTypeManager ?: \Drupal::entityTypeManager();
}