Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getAvailableSalutationKeys example
$this
->
Response
(
)
->
setContent
(
''
)
;
return
;
}
}
$this
->
Response
(
)
->
setContent
(
1
)
;
}
public
function
getSalutationsAction
(
)
{
$value
=
$this
->
getAvailableSalutationKeys
(
)
;
$whitelist
=
$this
->
Request
(
)
->
getParam
(
'ids',
[
]
)
;
if
(
!
empty
(
$whitelist
)
)
{
$whitelist
=
json_decode
(
$whitelist
, true
)
;
$value
=
array_filter
(
$value
,
function
D
$key
)
use
(
$whitelist
)
{
return
\
in_array
(
$key
,
$whitelist
, true
)
;
}
)
;
}
$namespace
=
Shopware
(
)
->
Container
(
)
->
get
(
'snippets'
)
->
getNamespace
(
'frontend/salutation'
)
;