public function ContentTranslationUpdatesManager::onConfigImporterImport in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/content_translation/src/ContentTranslationUpdatesManager.php \Drupal\content_translation\ContentTranslationUpdatesManager::onConfigImporterImport()
Listener for the ConfigImporter import event.
File
- core/
modules/ content_translation/ src/ ContentTranslationUpdatesManager.php, line 75 - Contains \Drupal\content_translation\ContentTranslationUpdatesManager.
Class
- ContentTranslationUpdatesManager
- Provides the logic needed to update field storage definitions when needed.
Namespace
Drupal\content_translationCode
public function onConfigImporterImport() {
$entity_types = array_filter($this->entityManager
->getDefinitions(), function (EntityTypeInterface $entity_type) {
return $entity_type
->isTranslatable();
});
$this
->updateDefinitions($entity_types);
}