diff --git a/core/modules/content_translation/src/ContentTranslationUpdatesManager.php b/core/modules/content_translation/src/ContentTranslationUpdatesManager.php index 2a7fdca..8ebfa27 100644 --- a/core/modules/content_translation/src/ContentTranslationUpdatesManager.php +++ b/core/modules/content_translation/src/ContentTranslationUpdatesManager.php @@ -72,7 +72,7 @@ public function updateDefinitions(array $entity_types) { * Listener for the ConfigImporter import event. */ public function onConfigImporterImport() { - $entity_types = array_filter(\Drupal::entityManager()->getDefinitions(), function (EntityTypeInterface $entity_type) { + $entity_types = array_filter($this->entityManager->getDefinitions(), function (EntityTypeInterface $entity_type) { return $entity_type->isTranslatable(); }); $this->updateDefinitions($entity_types);