class Fixer in Drupal 7 to 8/9 Module Upgrader 8
Defines a Plugin annotation object for DMU fixer plugins.
Fixers are similar in nature to the fixer classes used by PHP_CodeSniffer, in the sense that their job is to perform particular, isolated changes to code. But DMU fixers are a lot more powerful than PHPCS's because a) they're Drupal plugins, and b) they're using Pharborist.
Plugin Namespace: Plugin\DMU\Fixer
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\drupalmoduleupgrader\Annotation\Fixer
Expanded class hierarchy of Fixer
1 string reference to 'Fixer'
10 classes are annotated with Fixer
- CreateClass in src/
Plugin/ DMU/ Fixer/ CreateClass.php - Plugin annotation @Fixer( id = "create_class" )
- Define in src/
Plugin/ DMU/ Fixer/ Define.php - Plugin annotation @Fixer( id = "define" )
- Delete in src/
Plugin/ DMU/ Fixer/ Delete.php - Plugin annotation @Fixer( id = "delete" )
- Disable in src/
Plugin/ DMU/ Fixer/ Disable.php - Plugin annotation @Fixer( id = "disable" )
- FormCallbackToMethod in src/
Plugin/ DMU/ Fixer/ FormCallbackToMethod.php - Plugin annotation @Fixer( id = "form_callback_to_method" )
File
- src/
Annotation/ Fixer.php, line 19
Namespace
Drupal\drupalmoduleupgrader\AnnotationView source
class Fixer extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Fixer:: |
public | property | The plugin ID. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |