Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getViewports example
}
}
/** * creates a unique identifier string based on the grid position */
private
function
getElementIdentifier
(
Element
$el
)
: string
{
$identifier
= '';
foreach
(
$el
->
getViewports
(
)
as
$viewport
)
{
$identifier
.=
$viewport
->
getAlias
(
)
.
$viewport
->
getStartRow
(
)
.
$viewport
->
getStartCol
(
)
.
$viewport
->
getEndRow
(
)
.
$viewport
->
getEndCol
(
)
;
}
$identifier
.=
$el
->
getStartCol
(
)
.
$el
->
getStartRow
(
)
.
$el
->
getEndCol
(
)
.
$el
->
getEndRow
(
)
;
return
$identifier
;
}