Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By yched on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
The field_form_get_state() and field_form_set_state() functions are used to store processing data into $form_state for forms that include Field API widgets (most notably entity forms), and ensure no collisions occur.
In Drupal 8, the language of each individual field is not relevant to the way $form_state needs to be structured, and that $langcode parameter has been removed.
Those functions are mostly relevant for internal processing, and the change should mostly directly affect a couple of advanced widgets.
See also : Fields are no more nested under $langcode in entity $form structures
Impacts:
Module developers