Manage Plugin Content
ContentManager allows you to manage downloaded plugin content.
Uninstall Plugins
Use the $ContentManager->Delete($Slug)
function to uninstall plugins. Pass the plugins slug (unique ID) into the function. It will return true/false depending on success.
use Saturn\PluginManager\ContentManager;
$ContentManager = new ContentManager();
if ($ContentManager->Delete($Slug)) {
// The plugin was uninstalled
} else {
// Something went wrong
}
Last updated