You are here

public function RewriterInterface::rewrite in Drupal 7 to 8/9 Module Upgrader 8

Parametrically rewrites the function containing the given parameter.

Parameters

\Pharborist\Functions\ParameterNode $parameter: The parameter upon which to base the rewrite. The parameter must be attached to a function or method declaration node, or fatal errors will likely result.

1 method overrides RewriterInterface::rewrite()
Generic::rewrite in src/Plugin/DMU/Rewriter/Generic.php
Parametrically rewrites the function containing the given parameter.

File

src/RewriterInterface.php, line 26

Class

RewriterInterface
Defines a parametric rewriter.

Namespace

Drupal\drupalmoduleupgrader

Code

public function rewrite(ParameterNode $parameter);