deleteMenuItem example



class Migrations_Migration420 extends Shopware\Components\Migrations\AbstractMigration
{
    public function up($modus)
    {
        $this->fetchPluginId();
        $this->deleteListeners();
        $this->deleteMenuItem();
        $this->deletePlugin();
    }

    private function fetchPluginId()
    {
        $sql = <<<SQL SET @pluginId = ( SELECT id FROM s_core_plugins WHERE name LIKE "PluginManager" AND author LIKE "shopware AG" LIMIT 1 );
Home | Imprint | This part of the site doesn't use cookies.