Commit 0f438faa authored by alexpott's avatar alexpott
Browse files

Issue #2353013 by bertramakers, oenie, crazyrohila: Remove...

Issue #2353013 by bertramakers, oenie, crazyrohila: Remove taxonomy_term_load_parents_all from taxonomy/taxonomy.module.
parent 57b2e4f8
......@@ -57,7 +57,7 @@ public function getIndex();
public function resetCache();
/**
* Protected function to wrap call to taxonomy_term_load_parents_all.
* Fetches the parent forums for a given forum.
*
* @param int $tid
* Term ID.
......@@ -65,8 +65,8 @@ public function resetCache();
* @return array
* Array of parent terms.
*
* @todo remove and inject a service when taxonomy_term_get_parents_all has an
* object-oriented equivalent.
* @deprecated Scheduled to be removed in 9.0.x, see
* https://www.drupal.org/node/2371593.
*/
public function getParents($tid);
......
......@@ -397,16 +397,6 @@ function taxonomy_term_load_parents($tid) {
return \Drupal::entityManager()->getStorage('taxonomy_term')->loadParents($tid);
}
/**
* Find all ancestors of a given term ID.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal\taxonomy\TermStorageController::loadAllParents()
*/
function taxonomy_term_load_parents_all($tid) {
return \Drupal::entityManager()->getStorage('taxonomy_term')->loadAllParents($tid);
}
/**
* Finds all children of a term ID.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment