workarround for samples bug: admin materials inaccessible

This commit is contained in:
Bachir Soussi Chiadmi 2021-08-02 19:13:04 +02:00
parent 12c77de231
commit 523ee1dd9d
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ class SamplesDefaultFormatter extends FormatterBase {
$term = Term::load($item->target_id);
if(!$term) return;
// translate the term
$term = \Drupal::service('entity.repository')->getTranslationFromContext($term, $language);