ContentTranslationUpdatesManager::onConfigImporterImport

public ContentTranslationUpdatesManager::onConfigImporterImport()

Listener for the ConfigImporter import event.

File

core/modules/content_translation/src/ContentTranslationUpdatesManager.php, line 73

Class

ContentTranslationUpdatesManager
Provides the logic needed to update field storage definitions when needed.

Namespace

Drupal\content_translation

Code

public function onConfigImporterImport() {
  $entity_types = array_filter($this->entityManager->getDefinitions(), function(EntityTypeInterface $entity_type) {
    return $entity_type->isTranslatable();
  });
  $this->updateDefinitions($entity_types);
}
doc_Drupal
2016-10-29 08:58:30
Comments
Leave a Comment

Please login to continue.