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 gabesullice on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.8.x
Introduced in version:
8.8.0
Issue links:
Description:
Deprecation:
The protected properties \Drupal\jsonapi\ResourceType\ResourceType::$disabledFields
and ResourceType::$invertedFieldMapping
are deprecated in Drupal 8.8 and will be removed in Drupal 9.
Background:
These protected properties on the internal JSON:API value object, ResourceType
, were removed because they are no longer necessary. The ResourceType
value object has been refactored to use internal value objects extending Drupal\jsonapi\ResourceType\ResourceTypeField
. These new objects carry field aliases and the status of the JSON:API field representation (i.e. enabled/disabled).
Impacts:
Module developers