Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getSnippetNamespaceBackend example
'autoScroll' => true,
'fields' =>
$fields
,
'anchor' => '100%',
]
,
$fieldSet
->
getOptions
(
)
)
;
}
return
$sets
;
}
private
function
translateField
(
Type
$type
, Field
$field
)
: void
{
$namespace
=
$this
->snippets->
getNamespace
(
$type
->
getSnippetNamespaceBackend
(
)
)
;
$field
->
setLabel
(
$namespace
->
get
(
strtolower
(
$field
->
getName
(
)
)
. '_label',
$field
->
getLabel
(
)
, true
)
)
;
if
(
$helpText
=
$namespace
->
get
(
strtolower
(
$field
->
getName
(
)
)
. '_helpText'
)
)
{
$field
->
setHelpText
(
$helpText
)
;
}
elseif
(
$field
->
getHelpText
(
)
)
{
$namespace
->
get
(
strtolower
(
$field
->
getName
(
)
)
. '_helpText',
$field
->
getHelpText
(
)
, true
)
;
}
if
(
$description
=
$namespace
->
get
(
strtolower
(
$field
->
getName
(
)
)
. '_description'
)
)
{
$field
->
setDescription
(
$description
)
;
}