Skip to content

Commit

Permalink
wrap the relator type with t() function
Browse files Browse the repository at this point in the history
  • Loading branch information
Willow Gillingham committed Dec 1, 2022
1 parent 9598fca commit a808672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/Field/FieldFormatter/TypedRelationFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function viewElements(FieldItemListInterface $items, $langcode) {
$rel_types = $item->getRelTypes();
$rel_type = isset($rel_types[$item->rel_type]) ? $rel_types[$item->rel_type] : $item->rel_type;
if (!empty($rel_type)) {
$elements[$delta]['#prefix'] = $rel_type . ': ';
$elements[$delta]['#prefix'] = $this->t($rel_type) . ': ';
}
}

Expand Down

0 comments on commit a808672

Please sign in to comment.