GetT.php in Drupal 7 to 8/9 Module Upgrader 8
File
src/Plugin/DMU/Converter/Functions/GetT.php
View source
<?php
namespace Drupal\drupalmoduleupgrader\Plugin\DMU\Converter\Functions;
use Drupal\drupalmoduleupgrader\TargetInterface;
use Pharborist\Functions\FunctionCallNode;
use Pharborist\Types\StringNode;
class GetT extends FunctionCallModifier {
public function rewrite(FunctionCallNode $call, TargetInterface $target) {
return StringNode::fromValue('t');
}
}
Classes
Name |
Description |
GetT |
Plugin annotation
@Converter(
id = "get_t",
description = @Translation("Rewrites calls to get_t().")
) |