Commit 94138b79 authored by bojanz's avatar bojanz

Replace t() with ->t() now that the method is no longer static.

parent 90d9d8e7
......@@ -166,7 +166,7 @@ class PriceDefaultWidget extends WidgetBase implements ContainerFactoryPluginInt
$currency = $this->currencyStorage->load($value['currency_code']);
$value['amount'] = $this->numberFormatter->parseCurrency($value['amount'], $currency);
if ($value['amount'] === FALSE) {
$formState->setError($element['amount'], t('%title is not numeric.', [
$formState->setError($element['amount'], $this->t('%title is not numeric.', [
'%title' => $element['#title'],
]));
return;
......
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