Change record status: 
Project: 
Introduced in branch: 
8.x
Introduced in version: 
8.0
Description: 

Allowed values on field storage especially for floats and strings went against the configuration system's capabilities. Allowed values (for a float for example) appear like this on the user interface:

0.5|Small value
1.5|Bigger value

This was then stored in configuration as:

allowed_values:
  0.5: 'Small value'
  1.5: 'Bigger value'

This was not addressable with configuration because configuration uses dots as level separator in the tree. So allowed_values.0.5 is not a meaningful config value identifier. This also causes problems for string option values that may also contain dots. See also https://www.drupal.org/node/2297311 for more information on this problem.

Instead we needed to move the values out of being keys in a list. The new storage structure is as follows:

allowed_values:
  -
    value: 0.5
    label: 'Small value'
  -
    value: 1.5
    label: 'Bigger value'

While the storage structure changed dramatically, the API for accessing the allowed values did not change. If you implement an allowed values callback or deal with the setting, you will still work with the simpler array-key structure. It is only modified for storage. A new storage specific settings system was added as well to modify from/to the storage format. Read https://www.drupal.org/node/2307365 for more information.

Impacts: 
Module developers