By linclark on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
In Drupal 7, hook_rdf_mapping() could be used by modules to define default mappings for bundles that were defined by the module.
In Drupal 8, modules should instead include a config file. For example, rdf.mapping.node.article.yml:
id: node.article
targetEntityType: node
bundle: article
types:
- 'schema:Article'
fieldMappings:
title:
properties:
- 'schema:name'
created:
properties:
- 'schema:dateCreated'
datatype_callback: 'date_iso8601'
Impacts:
Module developers