Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getSortMode example
$options
[
$optionId
]
=
$this
->
hydrateOption
(
$row
)
;
$groups
[
$groupId
]
=
$group
;
$sets
[
$setId
]
=
$set
;
$group
->
setOptions
(
$options
)
;
$set
->
setGroups
(
$groups
)
;
}
foreach
(
$sets
as
$set
)
{
foreach
(
$set
->
getGroups
(
)
as
$group
)
{
$options
=
$group
->
getOptions
(
)
;
$this
->
sortOptions
(
$options
,
$set
->
getSortMode
(
)
)
;
$group
->
setOptions
(
$options
)
;
}
}
return
$sets
;
}
/** * @param array<string, mixed> $data * * @return Group */