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 linclark on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
In Drupal 7, the RDF mapping for a bundle was attached to the entity on entity_load and could be accessed using $entity->rdf_mapping.
In Drupal 8, this property have been removed. The entity's mapping should be accessed using one of the following functions:
When loading a mapping to edit it.
- RdfMapping::getBundleMapping()
- RdfMapping::getFieldMapping()
When loading a mapping to place it in HTML.
- RdfMapping::getPreparedBundleMapping()
- RdfMapping::getPreparedFieldMapping()
For more information, see https://drupal.org/node/2028865.
Impacts:
Module developers
Themers