protected function EntityViewsData::getEntityTypeManager in Entity API 8
Gets the entity type manager.
@todo Remove when support for Drupal 8.7 is dropped.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.
File
- src/
EntityViewsData.php, line 434
Class
- EntityViewsData
- Provides improvements to core's generic views integration for entities.
Namespace
Drupal\entityCode
protected function getEntityTypeManager() {
if (!isset($this->entityTypeManager)) {
return \Drupal::entityTypeManager();
}
return $this->entityTypeManager;
}