From 43a7efe72287d1947290c60df7904ce0043b8e8c Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
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

---
 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 610ede6fbe64..29401868d782 100644
--- a/core/modules/taxonomy/src/TermStorageInterface.php
+++ b/core/modules/taxonomy/src/TermStorageInterface.php
@@ -87,7 +87,8 @@ public function loadChildren($tid, $vid = NULL);
    *   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);
 
-- 
GitLab