X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Fsrc%2FPlugin%2FDMU%2FConverter%2FFunctions%2FVariableAPI.php;fp=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Fsrc%2FPlugin%2FDMU%2FConverter%2FFunctions%2FVariableAPI.php;h=b60dab5e3f00302495e21b5648bfe4cf27b0f848;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Converter/Functions/VariableAPI.php b/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Converter/Functions/VariableAPI.php new file mode 100644 index 000000000..b60dab5e3 --- /dev/null +++ b/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Converter/Functions/VariableAPI.php @@ -0,0 +1,51 @@ +getStatement(); + $arguments = $call->getArguments(); + + if ($arguments[0] instanceof StringNode) { + $key = $arguments[0]->toValue(); + + if (strPos($key, $target->id() . '_') === 0) { + return TRUE; + } + else { + $comment = <<buildFixMe($comment)->prependTo($statement); + return FALSE; + } + } + else { + $comment = <<buildFixMe($comment)->prependTo($statement); + return FALSE; + } + } + +}