This change record applies only from Drupal 8.x-dev to Drupal 8.x-dev. If you are looking for Drupal 7.x to 8.x change records you may safely skip it.
While previously it was possible to fetch metadata directly from the data objects; e.g. by doing $field_item->getPropertyDefinitions()
, this has been moved to the typed data definition classes now.
This means, field item properties are available via $field_definition->getFieldStorageDefinition()->getPropertyDefinitions()
.
This allows one to make use of the metadata without requiring run-time data objects. Check the issue summary of #2002134: Move TypedData metadata introspection from data objects to definition objects for a complete list of API changes and an usage example.