3 namespace Drupal\drupalmoduleupgrader\Annotation;
5 use Drupal\Component\Annotation\Plugin;
8 * Defines a Plugin annotation object for DMU converter plugins.
10 * Converters take Drupal 7 code and do what they can to rewrite it for Drupal 8.
11 * When a converter cannot convert something, it can leave a FIXME notice at the
12 * affected code informing the developer what still needs to be done. Converters
13 * may generate ugly code, but refactoring is not their job. Converts modify the
14 * target module in place.
16 * Plugin Namespace: Plugin\DMU\Converter
20 class Converter extends Plugin {
30 * A short description of the conversion the plugin performs.
37 * If the plugin converts a hook (or several hooks), the hook(s) it converts
38 * (without the hook_ prefix).
40 * @var string|string[]
45 * Optional FIXME notice the converter should leave at code that it cannot convert.
52 * Optional documentation links to be included in the FIXME notice.
56 public $documentation = [];