X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Fsrc%2FPlugin%2FDMU%2FFixer%2FHookToYAML.php;fp=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Fsrc%2FPlugin%2FDMU%2FFixer%2FHookToYAML.php;h=96938d35d59a777b226d5e1ffb10ad9d113bd9f3;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Fixer/HookToYAML.php b/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Fixer/HookToYAML.php new file mode 100644 index 000000000..96938d35d --- /dev/null +++ b/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Fixer/HookToYAML.php @@ -0,0 +1,26 @@ +getUnaliasedPath($this->configuration['destination']); + $data = $this->target->executeHook($this->configuration['hook']); + file_put_contents($destination, YAML::encode($data)); + } + +}