3 namespace Drupal\drupalmoduleupgrader\Annotation;
5 use Drupal\Component\Annotation\Plugin;
8 * Defines a Plugin annotation object for parametric rewriters.
10 * Parametric rewriters are intelligent search-and-replace plugins which act
11 * on a function body based on one of the function's parameters. The parameter
12 * type must be known ahead of time.
14 * Plugin Namespace: Plugin\DMU\Rewriter
18 class Rewriter extends Plugin {
28 * Optional type hint to set on the parameter.
35 * Properties known to the rewriter, keyed by property. Each property can
36 * have 'get' and 'set' keys, which are the corresponding getter and setter
37 * methods to replace the property with. The 'get' key is required; the
38 * setter is only needed if it's possible to set the property at all (for
39 * example, an entity ID property would not have a setter).
43 public $properties = [];