isRegistered('taoQtiTest/runner/plugins/controls/connectivity/pauseOnError')) { $registry->register(TestPlugin::fromArray([ 'id' => 'pauseOnError', 'name' => 'Reacts to errors', 'module' => 'taoQtiTest/runner/plugins/controls/connectivity/pauseOnError', 'bundle' => 'taoQtiTest/loader/testPlugins.min', 'description' => 'When an error occurs, lets the user pause the test or reload the page', 'category' => 'controls', 'active' => false, 'tags' => [ 'core', 'technical' ] ])); } } public function down(Schema $schema): void { $registry = PluginRegistry::getRegistry(); if ($registry->isRegistered('taoQtiTest/runner/plugins/controls/connectivity/pauseOnError')) { $registry->remove('taoQtiTest/runner/plugins/controls/connectivity/pauseOnError'); } } }