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.
Basically $comment->subject should use $comment->label() and $comment->cid should use $comment->id();
Comment | File | Size | Author |
---|---|---|---|
#5 | views-entity_interface-1748114-4.patch | 3.37 KB | lunaris |
#1 | views-entity_interface-1748114-1.patch | 4.8 KB | lunaris |
Comments
Comment #1
lunaris CreditAttribution: lunaris commentedA first attempt.
Comment #3
dawehnerYou seems to have made a patch against 7.x-3.x :(
At this position it is still something from the db so you can't call cid()
Also pure db
The $category is as that moment a pure result from the database.
Comment #5
lunaris CreditAttribution: lunaris commentedGod I'm an idiot. I think this one is a little better.
Comment #6
aspilicious CreditAttribution: aspilicious commentedLooks good to me
Comment #7
dawehnerGreat, thank you!
Committed to 8.x-3.x