diff --git a/core/modules/forum/src/ForumManager.php b/core/modules/forum/src/ForumManager.php index ecc9a7f..ec410de 100644 --- a/core/modules/forum/src/ForumManager.php +++ b/core/modules/forum/src/ForumManager.php @@ -463,7 +463,7 @@ public function resetCache() { * {@inheritdoc} */ public function getParents($tid) { - return $this->entityManager->getStorage('taxonomy_term')->loadParentsAll($tid); + return $this->entityManager->getStorage('taxonomy_term')->loadAllParents($tid); } /** diff --git a/core/modules/taxonomy/src/TermStorage.php b/core/modules/taxonomy/src/TermStorage.php index bf1cdd8..de21995 100644 --- a/core/modules/taxonomy/src/TermStorage.php +++ b/core/modules/taxonomy/src/TermStorage.php @@ -157,7 +157,7 @@ public function loadParents($tid) { /** * {@inheritdoc} */ - public function loadParentsAll($tid) { + public function loadAllParents($tid) { if (!isset($this->parentsAll[$tid])) { $parents = array(); if ($term = $this->load($tid)) { diff --git a/core/modules/taxonomy/src/TermStorageInterface.php b/core/modules/taxonomy/src/TermStorageInterface.php index 60c981e..f60d7a2 100644 --- a/core/modules/taxonomy/src/TermStorageInterface.php +++ b/core/modules/taxonomy/src/TermStorageInterface.php @@ -51,7 +51,7 @@ public function loadParents($tid); * @return \Drupal\taxonomy\TermInterface[] * An array of term objects which are the ancestors of the term $tid. */ - public function loadParentsAll($tid); + public function loadAllParents($tid); /** * Finds all children of a term ID. diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module index 59e0f85..47aacfc 100644 --- a/core/modules/taxonomy/taxonomy.module +++ b/core/modules/taxonomy/taxonomy.module @@ -398,10 +398,10 @@ function taxonomy_term_load_parents($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::loadParentsAll() + * Use \Drupal\taxonomy\TermStorageController::loadAllParents() */ function taxonomy_term_load_parents_all($tid) { - return \Drupal::entityManager()->getStorage('taxonomy_term')->loadParentsAll($tid); + return \Drupal::entityManager()->getStorage('taxonomy_term')->loadAllParents($tid); } /**