By larowlan on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Introduced in version:
8.0-alpha15
Issue links:
Description:
The following functions were removed in favour of OO equivalents.
- taxonomy_term_load_parents()
- taxonomy_term_load_parents_all()
- taxonomy_term_load_children()
- taxonomy_get_tree()
In addition
- TermStorageInterface::loadParents() and TermStorageInterface::loadChildren() now return Term objects instead of an array of tids.
- TermStorageInterface::loadTree() now returns an array of all term objects in the tree. Each term object is extended to have "depth" and "parents" attributes in addition to its normal ones (aka the original return of taxonomy_get_tree()).
- New method TermStorageInterface::loadAllParents().
| Drupal 7 | Drupal 8 |
|---|---|
|
|
|
|
|
|
|
|
Impacts:
Module developers