Closed (fixed)
Project:
Flag
Version:
8.x-4.x-dev
Component:
User interface
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Dec 2015 at 20:58 UTC
Updated:
30 Jan 2016 at 15:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dagmarHere is the patch.
Comment #3
joachim commentedThanks for the patch!
That's not quite what I meant, though, sorry -- it should be the *entity type* label instead of the entity type ID:
Comment #4
rashid_786 commentedupdated patch with suggested changes.
Comment #5
rashid_786 commentedComment #6
joachim commentedHm that's not it either, I'm afraid.
$entity_type is an object, not a string. You want to call ->label() on it IIRC. Check the code elsewhere -- eg the 'add flag' admin -- for code that does the same thing to see what the right method is.
Comment #7
klidifia commentedCalling ->label() on $entity_type
Comment #9
dagmarThanks @joachim.
Actually I think for Entity Types the right method is getLabel().
Comment #10
socketwench commentedThanks everyone!