We are upgrading our site from D7 to D8 and a part of this includes sending data out to another resource, specifically, Nodes. When we send data to the 3rd party resource, it’s expecting something like
[ { "drupalId": 1, "title": "English Node", "tnid": 1 }, { "drupalId": 2, "title": "Translated Node", "tnid": 1 } }
This allows the 3rd party resource to store 2 separate nodes and then links them together using the tnid
, and in this 3rd party resource, the Drupal Id is suppose to be unique. However, in D8, it appears that a node and it’s translation has the same Drupal Node Id and there does not exist a ‘tnid’ value, like it was in D7. I assume this is just the change in how translations work in Drupal 8 now, which brings me to my issue:
What can I use as a unique identifier between a node and its translation now?
In D7, the Node Id was a unique identifier and the tnid was a "link" between a node and its translation. In D8, the Node Id is the "link" between a node and its translation, but what could I use to distinguish a Node from its Translation?