You are here

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

Expanded class hierarchy of Fixer

1 string reference to 'Fixer'
drupalmoduleupgrader.services.yml in ./drupalmoduleupgrader.services.yml
drupalmoduleupgrader.services.yml
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" )

... See full list

File

src/Annotation/Fixer.php, line 19

Namespace

Drupal\drupalmoduleupgrader\Annotation
View source
class Fixer extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

}

Members

Namesort descending Modifiers Type Description Overrides
Fixer::$id public property The plugin ID.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2