From 411f995309d867c55fa4003415893f9c8653cd41 Mon Sep 17 00:00:00 2001 From: catch Date: Tue, 12 Jul 2022 13:27:06 +0900 Subject: [PATCH] Issue #3293996 by narendra.rajwar27, tbisciglia: Use getStorage('taxonomy_term') instead of getStorage('taxonomy_vocabulary') --- core/modules/taxonomy/taxonomy.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module index b1d586c91c2b..c221d7c4a799 100644 --- a/core/modules/taxonomy/taxonomy.module +++ b/core/modules/taxonomy/taxonomy.module @@ -213,7 +213,7 @@ function taxonomy_vocabulary_get_names() { * An array of matching term objects. * * @deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use - * \Drupal::entityTypeManager()->getStorage('taxonomy_vocabulary')->loadByProperties(['name' => $name, 'vid' => $vid]) + * \Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadByProperties(['name' => $name, 'vid' => $vid]) * instead, to get a list of taxonomy term entities having the same name and * keyed by their term ID. *