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.
This function accepts $load_entities as argument so returning EntityNG now #1818560: Convert taxonomy entities to the new Entity Field API or just stdObject from db_select()
fetch
Proposed
Clean-up usage of taxonomy_get_tree() to return array of stdObject and separate function to load entities based on result
Comments
Comment #1
pcambraIf we return stdclass instead of the entity, we need to change (at least) the entity reference plugin for them (TermSelection.php) that uses $term->id() for $term->tid
Comment #2
BerdirWe'd need to change a ton of things. For example, whenever you need the term name in the correct translation, you *need* the loaded term object and call label(). That's why the load_entities argument was introduced initially.
Comment #3
jibrantaxonomy_get_tree()
isTermStorage::loadTree()
now. I think it is not a bug nothing is broken. It's an api change without BC break so I think we can move it to 8.1.xComment #4
jibranNext Generation of entities has arrived.