diff -u b/token.tokens.inc b/token.tokens.inc --- b/token.tokens.inc +++ b/token.tokens.inc @@ -128,7 +128,7 @@ // Node tokens. $info['tokens']['node']['source'] = array( 'name' => t('Translation source node'), - 'description' => t("The source node for this current node's translation set."), + 'description' => t("The source node for this current node's entity translation."), 'type' => 'node', ); $info['tokens']['node']['log'] = array( @@ -610,8 +610,7 @@ // Chained token relationships. if (($parent_tokens = \Drupal::token()->findWithPrefix($tokens, 'source')) && $source_vocabulary = \Drupal::service('entity.repository')->getTranslationFromContext($vocabulary, LanguageInterface::LANGCODE_DEFAULT)) { - $replacements += \Drupal::token()->generate('vocabulary', $parent_tokens, array( - 'vocabulary' => $source_vocabulary), + $replacements += \Drupal::token()->generate('vocabulary', $parent_tokens, $options, $bubbleable_metadata); } }