You are here : › Simple Steps to Upgrading Your Modules to Drupal 8
Jun 17, 2016

Simple Steps to Upgrading Your Modules to Drupal 8

Simple Steps to Upgrading Your Modules to Drupal 8

Drupal 8 got released on November 19th, 2015 and with time its has gotten stable. Now is the right time to upgrade your Drupal 7 modules to Drupal 8.
 

There are two ways by which you can upgrade your module to Drupal 8 they are as follows :


1.    Upgrade Module to Drupal 8 Automatically Using Drupal Module Upgrade .
2.    Upgrade Module to Drupal 8 Manually.

1.  Upgrade Module to Drupal 8 Automatically Using Drupal Module Upgrade :         

This Module is run through command-line script:

  • First it scans the source of a Drupal 7 module which is to be upgraded.
  • After scanning it flags the codes that requires updating to Drupal 8.
  • It also points out the relevant API changes and automatically converts the Drupal 7 code to Drupal 8 version.
  • The goal is to ensures that there is coverage for most widely-used Drupal hooks and automatically convert them.


Note : This module may not convert all the Drupal 7 codes to Drupal 8.

2.  Upgrade Module to Drupal 8 Manually :

Steps to Upgrade your Module to Drupal 8 manually are as follows :

  • Before you start: Setting up a Drupal 8 module dev environment
  • Step 1: Convert your mymodule.info file to mymodule.info.yml file
  • Step 2: Convert your automated tests to Drupal 8
  • Step 3: Convert hook_menu() and forms in your module to Drupal 8 Configurtation
  • Step 4: Convert Drupal 7 Variables in your module to Drupal 8 Configuration
  • Step 5: How to upgrade D7 variables to D8's state system
  • Do debugging to your Drupal 8 module upgrades
  • Resources and tutorials


There are so many Contributed modules from Drupal 7 which has been moved to Drupal 8 core and some many Drupal 7 Core modules which has been removed from Drupal 8 Core which are given below.
 

List of modules added to Drupal 8 core :


1.    Action
2.    Ban
3.    HTTP Basic authentication
4.    Breakpoint
5.    Caption filter (part of filter module)
6.    CKEditor (ckeditor)
7.    Configuration Translation module
8.    content_translation
9.    CTools
10.    Entity Reference module
11.    Date module
12.    Text Editor (editor)
13.    email
14.    entity
15.    entity_reference
16.    hal
17.    history
18.    language
19.    link
20.    menu_link
21.    migrate
22.    migrate_drupal
23.    number
24.    options
25.    Quick Edit
26.    Responsive Image (responsive_image)
27.    rest
28.    serialization
29.    telephone
30.    text
31.    tour
32.    Views
33.    Views UI
34.    Xmlrpc
 

The following drupal modules have been removed from Drupal 8 core :


Blog module: Blog was removed from Drupal 8 core as part of a meta issue to make Drupal 8 core more maintainable. With the help of Fields,Views and Content Types (available in core) can build similar to blog

Dashboard module:  The Dashboard module is removed from Drupal 8 Core and is now available as a contributed Module.

Design test module: In Drupal 7, Style Guide module is more popular.

Number module: Email and number field types are moved to Drupal core Fields.

List module: List module is merged with Options module.

OpenID module: The OpenID module is removed from Drupal 8 core and is now available as a contributed module.

Overlay module: The new Drupal 8 toolbar now has a “back to site" button which has the same use-case as overlay module, it allows site users to return from the admin page that they were on.

PHP filter module: The PHP Filter module has been removed from Drupal 8 core for futher information go to https://drupal.org/node/2088811.

Poll module: The Poll module is removed from Drupal 8 core and is now available as a contributed module. There are also other contributed modules which provide similar polling functionality.

Profile module: The profile module has been removed from Drupal 8 core.

Trigger module: A contributed module Rules provides similar functionality. Trigger module is available as contributed module.

How we can help you?

For a thorough assessment and professional guidance on upgrading your Drupal website, Drupal Geeks can be reached out @ 312-340-7112 or send an email to [email protected]