From 5a9f90aab04af4f089e80d71b3793448ff50bc0e Mon Sep 17 00:00:00 2001 From: catch Date: Fri, 20 May 2022 12:35:07 +0100 Subject: [PATCH] Issue #3058409 by guilhermevp, joachim, ravi.shankar, quietone, init90, andregp: TermStorage::loadTree() doesn't document what the return array is keyed by (cherry picked from commit 1de8b6a8efb1231e040eefc896741c1eb94f64fe) --- core/modules/taxonomy/src/TermStorageInterface.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/modules/taxonomy/src/TermStorageInterface.php b/core/modules/taxonomy/src/TermStorageInterface.php index 610ede6fbe6..29401868d78 100644 --- a/core/modules/taxonomy/src/TermStorageInterface.php +++ b/core/modules/taxonomy/src/TermStorageInterface.php @@ -87,7 +87,8 @@ interface TermStorageInterface extends ContentEntityStorageInterface { * numbers of terms. Defaults to FALSE. * * @return object[]|\Drupal\taxonomy\TermInterface[] - * An array of term objects that are the children of the vocabulary $vid. + * A numerically indexed array of term objects that are the children of the + * vocabulary $vid. */ public function loadTree($vid, $parent = 0, $max_depth = NULL, $load_entities = FALSE);