Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
rdf.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Jun 2013 at 19:02 UTC
Updated:
29 Jul 2014 at 22:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
linclark commentedHere is a first pass. It changes the datatype_callback mapping from this:
to this:
Comment #2
scor commentedI understand the key 'method' is used because we're typically expecting a class method here, but date_iso8601() is a function. Should we use the key 'callable' instead?
Could we have this patch rerolled to not include other patches so it can possibly be committed before the other patches? It looks good otherwise, and both Drupal\rdf\SchemaOrgDataConverter::interactionCount and Drupal\rdf\CommonDataConverter::rawValue are tested.
Comment #3
linclark commentedThis patch just rerolls it without the dependency on the other issue. I'll switch to 'callable' in the next patch.
Comment #4
linclark commentedOk, this changes method to callable.
Comment #5
scor commentedCould '$arguments' be used here instead of '$args' in order to be consistent with the naming used in the YAML file and the rest of the patch? (for example below)
Comment #6
linclark commentedGood catch. $args came from an earlier commit, which is how the inconsistency slipped in, but we should be consistent.
Comment #7
jesse.d commentedMakes the requested change to use $arguments instead of $args in SchemaOrgDataConverter.php.
Comment #8
scor commentedThis looks good with this change.
Comment #9
alexpottCommitted e9ca0d8 and pushed to 8.x. Thanks!
Comment #10
mlncn commentedWriting the change notices.
Comment #11
mlncn commentedAPI change notification
Summary
Configuration example
In Drupal 7 this was defined in hook_rdf_mapping(). In Drupal 8, this goes in the YAML for a content type. For instance, a created at field and a comment count:
Before
After
and
Comment #12
catch#2083415: [META] Write up all outstanding change notices before release.
Comment #13
linclark commented@mlncn, thanks for the change notice text. Did this ever get input as a draft change notice?
Comment #13.0
linclark commentedclarifies that the interactions are specified on schema.org.
Comment #14
mlncn commentedAdded a change notice: https://drupal.org/node/2159855
First time doing one of those, please review!
Comment #15
star-szrFurther edits can be made if necessary but that looks good to me @mlncn, thanks! Closing out this issue.
Comment #16
star-szrActually marking as fixed this time :)