removeWidget example



use Shopware\Components\Migrations\AbstractMigration;

class Migrations_Migration1723 extends AbstractMigration
{
    public function up($modus)
    {
        $this->removeMenuEntries();
        $this->removeConfigElement();
        $this->removeWidget();
    }

    private function removeMenuEntries(): void
    {
        $sql = <<<'SQL' DELETE FROM `s_core_menu` WHERE `controller` = 'Benchmark' SQL;
        $this->addSql($sql);
    }

    private function removeConfigElement(): void
    {
Home | Imprint | This part of the site doesn't use cookies.