workarround for samples bug: admin materials inaccessible
This commit is contained in:
parent
12c77de231
commit
523ee1dd9d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue