Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
removeType example
$this
->
clearCacheAndSync
(
)
;
$this
->
createUrls
(
$type
)
;
$this
->
View
(
)
->
assign
(
[
'success' => true,
'data' =>
$this
->
getDetail
(
$type
->
getInternalName
(
)
)
,
]
)
;
}
public
function
deleteAction
(
string
$id
)
: void
{
$this
->typeProvider->
removeType
(
$id
)
;
$this
->
getModelManager
(
)
->
getConnection
(
)
->
delete
(
's_content_types',
[
'internalName' =>
$id
,
]
)
;
$this
->cleanupService->
deleteContentType
(
$id
)
;
$this
->
clearCacheAndSync
(
)
;
$this
->
View
(
)
->
assign
(
'success', true
)
;
}