Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
removeCustomEntities example
'id' =>
$pluginId
,
'active' => false,
'installedAt' => null,
]
,
$shopwareContext
)
;
$plugin
->
setActive
(
false
)
;
$plugin
->
setInstalledAt
(
null
)
;
if
(
!
$uninstallContext
->
keepUserData
(
)
)
{
$this
->
removeCustomEntities
(
$plugin
->
getId
(
)
)
;
}
if
(
$pluginBaseClass
->
executeComposerCommands
(
)
)
{
$pluginComposerName
=
$plugin
->
getComposerName
(
)
;
if
(
$pluginComposerName
=== null
)
{
throw
new
PluginComposerJsonInvalidException
(
$pluginBaseClass
->
getPath
(
)
. '/composer.json',
[
'No name defined in composer.json'
]
)
;
}
$this
->executor->
remove
(
$pluginComposerName
,
$plugin
->
getName
(
)
)
;