Commit bb059263 authored by RoSk0's avatar RoSk0

Fixed InvalidArgumentException.

InvalidArgumentException: $string ("Private") must be a string.
in Drupal\Core\StringTranslation\TranslatableMarkup->__construct()
(line 140 of core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php).
parent 93a71a31
......@@ -33,7 +33,7 @@ class MailWithTypeFormatter extends FormatterBase {
'#type' => 'link',
'#title' => $item->value,
'#url' => Url::fromUri('mailto:' . $item->value),
'#prefix' => $this->t($email_types[$item->type]) . ': ',
'#prefix' => $email_types[$item->type] . ': ',
];
}
return $elements;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment