https://www.drupal.org/project/drupalmoduleupgrader

scans the source of a Drupal 7 module, flags any code that requires updating to Drupal 8, points off to any relevant API change notices, and (where possible) will actually attempt to convert the Drupal 7 code automatically to the Drupal 8 version! The goal is to hit the most widely-used Drupal hooks and ensure there's coverage for them.

Comments

dbt102 created an issue. See original summary.

dbt102’s picture

Title: Apply moduleupgrader to » Apply moduleupgrader to BACnet
dbt102’s picture

terminal report showing relevant change notices to read more.

#0
/drupal-8.2.x-dev/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php(71):
Drupal\Core\StringTranslation\TranslatableMarkup->__construct(NULL,
Array, Array,
Object(Drupal\Core\StringTranslation\TranslationManager))

#1
/drupal-8.2.x-dev/modules/drupalmoduleupgrader/src/Plugin/DMU/Analyzer/FlagHookDeriver.php(47):
Drupal\drupalmoduleupgrader\DeriverBase->t(NULL, Array)

#2
/drupal-8.2.x-dev/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php(100):
Drupal\drupalmoduleupgrader\Plugin\DMU\Analyzer\FlagHookDeriver->getDerivativeDefinitions(Array)

#3
/drupal-8.2.x-dev/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php(86):
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array)

#4
/drupal-8.2.x-dev/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(274):
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions()

#5
/drupal-8.2.x-dev/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(174):
Drupal\Core\Plugin\DefaultPluginManager->findDefinitions()

#6
/drupal-8.2.x-dev/modules/drupalmoduleupgrader/drupalmoduleupgrader.drush.inc(108):
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions()

#7
/drupal-8.2.x-dev/modules/drupalmoduleupgrader/drupalmoduleupgrader.drush.inc(244):
_dmu_plugin_list('analyzer')

#8
[internal function]:
drush_drupalmoduleupgrader_dmu_analyze('bacnet')

#9
~/vendor/drush/drush/includes/command.inc(364):
call_user_func_array('drush_drupalmod...', Array)

#10
~/vendor/drush/drush/includes/command.inc(215):
_drush_invoke_hooks(Array, Array)

#11
[internal function]:
drush_command('bacnet')

#12
~/vendor/drush/drush/includes/command.inc(183):
call_user_func_array('drush_command', Array)

#13
~/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(62):
drush_dispatch(Array)

#14
~/vendor/drush/drush/drush.php(70):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()

#15
~/vendor/drush/drush/drush.php(11): drush_main()

#16 {main}

dbt102’s picture

Then I ran autoupdate command

drush dmu-upgrade MODULE_NAME

Go into your modules/MODULE_NAME directory and check out all of your new YAML files and such. ;)

dbt102’s picture

Status: Active » Fixed

Ok, I've completed applying moduleupgrader to BACnet, so I'm closing this issue and will open additional one to break out the component upgrade.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.