Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
EntityInterface::getEntityType() gets you a type object; EntityInterface::getEntityTypeId() gets you an ID string.
Our getFlaggableEntityType() is confusingly named when compared with this.
Comment | File | Size | Author |
---|---|---|---|
#1 | getFlaggable-2471142-1.patch | 2.97 KB | martin107 |
Comments
Comment #1
martin107 CreditAttribution: martin107 commentedA global replace call tells me 6 instances fixed.
Visually I have given it the once over ... all annotations seems fine.
FlagSimpleTest passes... triggering testbot to see if I have missed anything silly.
Comment #2
martin107 CreditAttribution: martin107 commentedOk so after sleeping on it - I won't RTBC my own patch :)
Comment #3
joachim CreditAttribution: joachim commentedtut tut... :)
It's a simple change, and I confirm that a grep for 'getFlaggableEntityType\b' shows nothing. So committing this. Thanks for the patch!