You are here

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;

/**
 * @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');
  }

}

Classes

Namesort descending Description
GetT Plugin annotation @Converter( id = "get_t", description = @Translation("Rewrites calls to get_t().") )