Commit 5302385b authored by Manuel Adán's avatar Manuel Adán Committed by Andrii Podanenko
Browse files

Issue #2981668 by manuel.adan: Language not added to options in token replace

parent e8a40deb
Loading
Loading
Loading
Loading
+1 −1
Changes for src/Plugin/CustomFormatters/FormatterType/HTMLToken.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ class HTMLToken extends FormatterTypeBase {

      $element[$delta] = [
        '#markup' => \Drupal::token()
          ->replace($text, $token_data, ['clear' => TRUE]),
          ->replace($text, $token_data, ['clear' => TRUE, 'langcode' => $langcode]),
      ];
    }