Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
address
Commits
84455dd2
Commit
84455dd2
authored
Feb 21, 2020
by
malte.koelle
Committed by
bojanz
Feb 21, 2020
Browse files
Issue
#3112715
by malte.koelle: Replace the t() function to $this->t()
parent
d314c013
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Plugin/Field/FieldFormatter/ZoneDefaultFormatter.php
View file @
84455dd2
...
...
@@ -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'
],
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment