X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Fsrc%2FPlugin%2FDMU%2FFixer%2FDisable.php;fp=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Fsrc%2FPlugin%2FDMU%2FFixer%2FDisable.php;h=8fc1fa0557b15b67631444dc746f02e3c640fd06;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Fixer/Disable.php b/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Fixer/Disable.php new file mode 100644 index 000000000..8fc1fa055 --- /dev/null +++ b/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Fixer/Disable.php @@ -0,0 +1,35 @@ +getObjects() as $node) { + if ($node->hasRoot()) { + $statement = $node->getStatement(); + $statement->replaceWith($statement->toComment()); + } + } + + $this->target->save(); + } + +}