Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getFieldSets example
'header' =>
$field
->
getLabel
(
)
,
]
;
}
return
$fields
;
}
public
function
buildFieldSets
(
Type
$type
)
: array
{
$sets
=
[
]
;
foreach
(
$type
->
getFieldSets
(
)
as
$fieldSet
)
{
$fields
=
[
]
;
foreach
(
$fieldSet
->
getFields
(
)
as
$field
)
{
$this
->
translateField
(
$type
,
$field
)
;
$fields
[
$field
->
getName
(
)
]
=
[
'fieldLabel' =>
$field
->
getLabel
(
)
,
'xtype' =>
$field
->
getType
(
)
::
getExtjsField
(
)
,
'anchor' => '100%',
'translatable' =>
(bool)
$field
->
isTranslatable
(
)
,
'supportText' =>
$field
->
getDescription
(
)
,