Commit 84455dd2 authored by malte.koelle's avatar malte.koelle Committed by bojanz
Browse files

Issue #3112715 by malte.koelle: Replace the t() function to $this->t()

parent d314c013
......@@ -219,7 +219,7 @@ class ZoneDefaultFormatter extends FormatterBase implements ContainerFactoryPlug
if ($included_postal_codes = $territory->getIncludedPostalCodes()) {
$element['territories'][$index]['included_postal_codes'] = [
'#type' => 'item',
'#title' => t('Included postal codes'),
'#title' => $this->t('Included postal codes'),
'#attributes' => [
'class' => ['included-postal-codes'],
],
......@@ -229,7 +229,7 @@ class ZoneDefaultFormatter extends FormatterBase implements ContainerFactoryPlug
if ($excluded_postal_codes = $territory->getExcludedPostalCodes()) {
$element['territories'][$index]['excluded_postal_codes'] = [
'#type' => 'item',
'#title' => t('Excluded postal codes'),
'#title' => $this->t('Excluded postal codes'),
'#attributes' => [
'class' => ['excluded-postal-codes'],
],
......
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