3 namespace Drupal\drupalmoduleupgrader\Plugin\DMU\Converter\Functions;
5 use Drupal\drupalmoduleupgrader\TargetInterface;
6 use Pharborist\Functions\FunctionCallNode;
7 use Pharborist\Objects\ObjectMethodCallNode;
11 * id = "field_update_instance",
12 * description = @Translation("Rewrites calls to field_update_instance().")
15 class FieldUpdateInstance extends FunctionCallModifier {
20 public function rewrite(FunctionCallNode $call, TargetInterface $target) {
21 return ObjectMethodCallNode::create(clone $call->getArgumentList()->getItem(0), 'save');