Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
dbt102 CreditAttribution: dbt102 commentedComment #3
dbt102 CreditAttribution: dbt102 commentedterminal 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}
Comment #4
dbt102 CreditAttribution: dbt102 commentedThen I ran autoupdate command
drush dmu-upgrade MODULE_NAME
Comment #5
dbt102 CreditAttribution: dbt102 commentedOk, I've completed applying moduleupgrader to BACnet, so I'm closing this issue and will open additional one to break out the component upgrade.