2

I am working on Drupal 8 and I have migrated my Drupal 7 website to Drupal 8 using the Migrate Upgrade module, but none of the modules is imported from my previous Drupal 7 site.

How do I import modules from Drupal 7 to Drupal 8 without using Drush commands? I'm not much familiar with Drush.

I have seen the article in which a process is given to import modules using Drupal Module Upgrader, but it's based on Drush.

Is there any simple method to port Drupal 7 modules to Drupal 8?

2
  • 2
    To answer the Views part of your question, please read How do I import a view?
    – No Sssweat
    Commented Jan 9, 2017 at 13:20
  • 1
    Do yu want to migrate modules (= their code) or their data? The current answers are about the code (porting, not migration) but if you really mean migrate, then that's something very different.
    – Berdir
    Commented Jan 9, 2017 at 20:50

2 Answers 2

3

Perhaps, your question in bold needs to be reworded to Is there any simple method to port D7 modules to D8? Which is what you're really after.

If you are referring to CUSTOM modules (not drupal.org contrib modules) then the fastest / most simple way is to use Drupal Module Upgrader which you mentioned in your question. In module page they show you a video with all the steps.

There is no reason to be afraid of Drush. As a Drupal newbie, Drush can seem scary/daunting, I used to avoid it too, but once you learn Drush, which is not hard, you will discover that is super useful and a time saver. You will wish you learned it earlier.

It is important to note that while the Drupal Module Upgrader will port/rewrite some of the code, some of the code may not (depends on how complex your module is) and you will have to manually modify/rewrite certain parts by hand.

Other than using Drupal Module Upgrader, there is no other choice, but to manually re-write your entire module.

If you are referring to Drupal.org Contrib Modules then you will need to download the D8 version, if there is one.

1
  • 2
    I have tried an earlier version of the Drupal Module Upgrader and back then it ported about half of the module, but there was still plenty of work left. Maybe it has improved by now. But this method is only supposed to port your own modules (if you are a maintainer). From the question is was not clear to me if community modules or custom modules are meant. If there is an existing Drupal 8 version of a module, use that instead. Drupal Module Upgrader will not give you the same outcome! Commented Jan 9, 2017 at 18:54
2

You cannot.

There is a significant difference between the architecture of Drupal 7 and 8 modules, so they cannot be migrated. You'll have to reinstall them in your new site.

It might be that some of those modules (after installing) allow migration of settings. So it would be better to attempt the migration after installing all modules.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.