Commit f54fe1fa authored by muzzl's avatar muzzl Committed by Ra Mänd
Browse files

Issue #2907621 by jmuzz, unknownguy: Field collection translation...

Issue #2907621 by jmuzz, unknownguy: Field collection translation compatibility issue with entity_translation-7.x-1.0-beta6 and upwards
parent 4a218048
......@@ -42,7 +42,7 @@ class EntityTranslationFieldCollectionItemHandler extends EntityTranslationDefau
// language.
if (($host_entity_type = $this->entity->hostEntityType()) && entity_translation_enabled($host_entity_type) && ($host_entity = $this->entity->hostEntity())) {
$handler = $this->factory->getHandler($host_entity_type, $host_entity);
$langcode = $handler->getFormLanguage();
$langcode = $handler->getLanguage();
}
// If the host entity is not translatable, use the default language
// fallback.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment