public AccountForm::syncUserLangcode($entity_type_id, UserInterface $user, array &$form, FormStateInterface &$form_state)
Synchronizes preferred language and entity language.
Parameters
string $entity_type_id: The entity type identifier.
\Drupal\user\UserInterface $user: The entity updated with the submitted values.
array $form: The complete form array.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
File
core/modules/user/src/AccountForm.php, line 302