Change record status: 
Project: 
Introduced in branch: 
8.1.x
Introduced in version: 
8.1.4
Description: 

#2757003: Entity builder ContentEntityForm::updateFormLangcode changes the form language code during ajax calls discovered an inconsistency where the form language code will be changed in the form state after an ajax call if the language widget is used and its value has been changed.

The entity builder function responsible for this is ContentEntityForm::updateFormLangcode and its body has been emptied. The function has been flagged as deprecated in 8.1.4 and will be removed in 9.0.0. It has been kept for backwards compatibility.

If you're somehow relying on retrieving the changed value of the language widget during ajax calls from $form_state->get('langcode'), you should change it, so that it is retrieved from the form values with e.g. $form_state->getValue($entity_type->getKey('language')).

Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done