Skip to content
Snippets Groups Projects

Issue #2761767 by loopduplicate, rwam, aspilicious, Kristen Pol, devarch,...

Merged Issue #2761767 by loopduplicate, rwam, aspilicious, Kristen Pol, devarch,...
Merged Yurii Stenin requested to merge issue/ds-2761767:2761767- into 8.x-3.x
Files
3
@@ -2,6 +2,7 @@
namespace Drupal\ds\Plugin\DsFieldTemplate;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\ds\Attribute\DsFieldTemplate;
@@ -261,7 +262,10 @@ class Expert extends DsFieldTemplateBase {
$field_settings[$identifier] = \Drupal::token()->replace(
$field_settings[$identifier],
[$entity->getEntityTypeId() => $entity],
['clear' => TRUE]
[
'clear' => TRUE,
'langcode' => \Drupal::languageManager()->getCurrentLanguage(LanguageInterface::TYPE_CONTENT)->getId()
]
);
}
}
Loading