Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
comment.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Jul 2013 at 00:03 UTC
Updated:
26 Nov 2014 at 17:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
larowlanWhoops
Comment #2
catchThis seems like we'll run into it whichever version they're taken out of. Given migrate and that specific tokens aren't much of an API, moving back to 8.x at least for now.
Comment #3
andypostLet's see a test coverage.
This [node] tokens could be provided by deprecated contrib module
Comment #5
andypostFixed patch - added test for tokens that replaces current functionality
CR https://www.drupal.org/node/2371365
Comment #6
larowlanShouldn't this be id, not nid?
Comment #7
andypostNO,
:idwould work only for entities that have ID as key, that's why I extended a testComment #8
andypostComment #9
larowlanah, makes sense - thanks!
Comment #11
andypostre-roll
Comment #12
larowlanback we go
Comment #13
catchThese test changes look odd to me, why would we still test comment:entity:nid or comment:entity:title and support that?
Comment #14
andypostI've added this tests because there's no coverage for [comment:entity:*] tokens and to make sure that removed functionality works by the new way
Comment #15
catchWhy nid and title rather than id and label though?
Comment #16
andypostin #7 I said that there's no such tokens - each token is Real entity field (name)
PS: filed new issue #2372465: Add unified entity tokens for ID and Label
Comment #17
catchExplanation and follow-up both good.
Committed/pushed to 8.0.x, thanks!