->
andWhere('plugin.source != :source'
) ->
setParameter(':source', 'Default'
) ->
setParameter(':names',
['PluginManager', 'StoreApi'
], Connection::PARAM_STR_ARRAY
);
return $query->
execute()->
fetchAllAssociative();
} private function getPluginStateDescription(bool
$inStore, bool
$available): string
{ switch (true
) { case $inStore &&
$available:
return $this->
getSnippetNamespace()->
get('controller/plugin_compatible', 'The author of the plugin marked the plugin as compatible.'
);
case $inStore && !
$available:
return $this->
getSnippetNamespace()->
get('controller/plugin_not_compatible', 'The author of the plugin did not mark the plugin as compatible with the shopware version'
);
default:
return $this->
getSnippetNamespace()->
get('controller/plugin_not_in_store', 'The plugin is not available in the store.'
);
} }}