ContentTranslationHandler::entityFormAlter() is called from content_translation_form_alter(), that does this :
$controller = content_translation_controller($entity->getEntityTypeId());
$controller->entityFormAlter($form, $form_state, $entity);
// @todo Move the following lines to the code generating the property form
// elements once we have an official #multilingual FAPI key.
[10 lines that perform additional $form altering]
- That @todo is dangling without any issue ?
- Meanwhile, why isn't this moved into CTH::entityFormAlter() as well ?
That's confusing, you'd expect CTH::entityFormAlter() to do all the required $form massaging.
Plus, that extra code adds a couple #multilingual properties, and CTH::entityFormAlter() also does something like that (on different elements ?)
Comments