Closed (fixed)
Project:
Entity Share
Version:
8.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2017 at 13:57 UTC
Updated:
23 Sep 2018 at 15:44 UTC
Jump to comment: Most recent
Comments
Comment #2
grimreaperWill reassign to myself when I will have time to test.
Comment #3
grimreaperTested with https://www.drupal.org/project/link_class but it will be the problem with https://www.drupal.org/project/link_attributes and other modules that use this options field.
The field is empty in JSONAPI.
Opened an issue in the JSON API issue queue: #2911477: Link fields' "options" not normalized.
Comment #4
wim leersSee #2911477-3: Link fields' "options" not normalized. The root cause is being fixed in #2895532: @DataType=map cannot be normalized, affects @FieldType=link, @FieldType=map.
Comment #5
grimreaperThanks Wim Leers.
I have just tested the patch from the comment #2895532-96: @DataType=map cannot be normalized, affects @FieldType=link, @FieldType=map and it works ok. I see the options in the JSON and its are transmitted using Entity share.
Comment #6
grimreaperHello,
I have made a test on:
The link attributes are now serialized :D, no more patch or workaround needed.
Marking the issue as fixed. \o/