Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
generateEmotionSeoUrls example
'data' =>
$this
->
Request
(
)
->
getParams
(
)
,
'success' => false,
]
)
;
return
;
}
$alreadyExists
=
$this
->
hasEmotionForSameDeviceType
(
(int)
$data
[
'categoryId'
]
)
;
$data
[
'id'
]
=
$emotion
->
getId
(
)
;
$this
->
generateEmotionSeoUrls
(
$emotion
)
;
$this
->
removePreview
(
$emotion
->
getId
(
)
)
;
$this
->
View
(
)
->
assign
(
[
'data' =>
$data
,
'success' => true,
'alreadyExists' =>
$alreadyExists
,
]
)
;
}
catch
(
ORMException
$e
)
{
$this
->
View
(
)
->
assign
(
[
'data' =>
$this
->
Request
(
)
->
getParams
(
)
,
'success' => false,