protected function ContentModelUpdater::getEntityTypeManager in Panopoly 8.2
Gets the entity type manager service.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager service.
File
- modules/
panopoly/ panopoly_media/ src/ Update/ ContentModelUpdater.php, line 1216
Class
- ContentModelUpdater
- Applies changes to media content model from schema versions 8204 to 8205.
Namespace
Drupal\panopoly_media\UpdateCode
protected function getEntityTypeManager() {
if (!$this->entityTypeManager) {
$this->entityTypeManager = \Drupal::entityTypeManager();
}
return $this->entityTypeManager;
}