Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getPropertyOptionsMixed example
return
new
PropertyGroupCollection
(
[
$propertyGroup
]
)
;
}
private
function
getPropertyGroupPositionMixed
(
)
: PropertyGroupCollection
{
$propertyGroup
=
new
PropertyGroupEntity
(
)
;
$propertyGroup
->
setId
(
Uuid::
randomHex
(
)
)
;
$propertyGroup
->
setName
(
'Position'
)
;
$propertyGroup
->
setSortingType
(
PropertyGroupDefinition::SORTING_TYPE_POSITION
)
;
$propertyGroup
->
setDisplayType
(
PropertyGroupDefinition::DISPLAY_TYPE_TEXT
)
;
$propertyGroup
->
setPosition
(
1
)
;
$propertyGroup
->
setOptions
(
$this
->
getPropertyOptionsMixed
(
)
)
;
return
new
PropertyGroupCollection
(
[
$propertyGroup
]
)
;
}
private
function
getPropertyGroupAlphaNumericMixed
(
)
: PropertyGroupCollection
{
$propertyGroup
=
new
PropertyGroupEntity
(
)
;
$propertyGroup
->
setId
(
Uuid::
randomHex
(
)
)
;
$propertyGroup
->
setName
(
'Position'
)
;
$propertyGroup
->
setSortingType
(
PropertyGroupDefinition::SORTING_TYPE_ALPHANUMERIC
)
;
$propertyGroup
->
setDisplayType
(
PropertyGroupDefinition::DISPLAY_TYPE_TEXT
)
;