Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / src / Plugin / DMU / Converter / Functions / GetT.php
diff --git a/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Converter/Functions/GetT.php b/web/modules/contrib/drupalmoduleupgrader/src/Plugin/DMU/Converter/Functions/GetT.php
new file mode 100644 (file)
index 0000000..76bcd71
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+namespace Drupal\drupalmoduleupgrader\Plugin\DMU\Converter\Functions;
+
+use Drupal\drupalmoduleupgrader\TargetInterface;
+use Pharborist\Functions\FunctionCallNode;
+use Pharborist\Types\StringNode;
+
+/**
+ * @Converter(
+ *  id = "get_t",
+ *  description = @Translation("Rewrites calls to get_t().")
+ * )
+ */
+class GetT extends FunctionCallModifier {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function rewrite(FunctionCallNode $call, TargetInterface $target) {
+    return StringNode::fromValue('t');
+  }
+
+}