public function Field::getEntityTypeManager in Search API 8
Retrieves the entity type manager.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.
File
- src/
Item/ Field.php, line 223
Class
- Field
- Represents a field on a search item that can be indexed.
Namespace
Drupal\search_api\ItemCode
public function getEntityTypeManager() : EntityTypeManagerInterface {
return $this->entityTypeManager ?: \Drupal::entityTypeManager();
}