By yched on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
In Drupal 7, field values within an entity were simple arrays, and had no knowledge of their langcode. Functions that worked on individual field values needed the associated langcode to be passed along in a separate $langcode parameter, or had to figure out the language themselves by re-applying some complex multilingual logic.
In Drupal 8, field values are objects (Field / FieldItem classses) and have a getLangcode() method that returns their langcode.
Impacts:
Module developers