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.
Followup to #1616962: Replace $node->title with $node->label() noted by Berdir: poll_page()
directly queries the {node} table to built its list of polls, but should be using EFQ/entity_load
instead, in order to obtain classed objects not that entities derive from Entity. When such nodes are passed to methods, they will be missing the expected EntityInterface methods.
Comments
Comment #1
fgmBerdir also noticed similar issues in statistics, search and tracker.
Comment #2
alexpottPoll is no longer part of core
Comment #3
adammaloneMoving this back to the Drupal project since Poll exists as its own entity in 8.x and does not query the node table.