diff --git a/core/modules/taxonomy/taxonomy.tokens.inc b/core/modules/taxonomy/taxonomy.tokens.inc index 18985bd..b0f6472 100644 --- a/core/modules/taxonomy/taxonomy.tokens.inc +++ b/core/modules/taxonomy/taxonomy.tokens.inc @@ -160,10 +160,10 @@ function taxonomy_tokens($type, $tokens, array $data, array $options, Bubbleable elseif ($type == 'vocabulary' && !empty($data['vocabulary'])) { /** @var \Drupal\taxonomy\VocabularyInterface $vocabulary */ $language_manager = \Drupal::languageManager(); - $language = \Drupal::languageManager()->getLanguage($langcode); + $language = $language_manager->getLanguage($langcode); $original_language = $language_manager->getConfigOverrideLanguage(); $language_manager->setConfigOverrideLanguage($language); - $vocabulary = \Drupal::entityManager()->getTranslationFromContext($data['vocabulary'], $langcode, ['operation' => 'vocabulary_tokens']); + $vocabulary = $data['vocabulary']; foreach ($tokens as $name => $original) { switch ($name) {