public function PSR4::convert in Drupal 7 to 8/9 Module Upgrader 8
Performs required conversions.
Parameters
TargetInterface $target: The target module to convert.
Overrides ConverterInterface::convert
File
- src/Plugin/ DMU/ Converter/ PSR4.php, line 29 
Class
- PSR4
- Plugin annotation @Converter( id = "PSR4", description = @Translation("Moves classes into PSR-4 directory structure.") )
Namespace
Drupal\drupalmoduleupgrader\Plugin\DMU\ConverterCode
public function convert(TargetInterface $target) {
  $target
    ->getIndexer('class')
    ->getAll()
    ->each(function (ClassNode $class) use ($target) {
    $this
      ->writeClass($target, self::toPSR4($target, $class));
  });
}