Closed (won't fix)
Project:
Flag
Version:
8.x-4.x-dev
Component:
Flag core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2015 at 07:57 UTC
Updated:
22 Feb 2015 at 19:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
joachim commentedComment #2
joshi.rohit100updated 'id' to flag.
Comment #4
joshi.rohit100I tried to update the testcases for this as it seems like testcase problem to me.
I just tried with FlagConfirmFormTest but I am stuck with this :-
I dont know if I am doing right. Can some one guide me in right direction ?
Comment #5
socketwench commentedI'm reluctant to change it because when I look at NodeType.php...
That, combined with how "type" and "node" both seem more confusing to me than "id", I'm not inclined to change this.
Comment #6
berdir+1 to using id and label and closing this as a won't fix :)
Core has been trying to go into that direction, just never reached it for all entity types, but a lot of them have been renamed.
Comment #7
berdirAnd node type is probably the worst example that core has to offer, both with the double-meaning of type ($type->type? what exactly does $node->getType() return?) and using "name" for the label of a config entity.
Comment #8
socketwench commentedIt also seems to make more sense given we have an id() and label() methods on EntityInterface, it just seems to make more sense to leave the class variables as they are.