Drupal 8’s beta version was released a few month ago and now it is time to start porting modules. To demonstrate how to do it, we’re going to use a real module called scroll_to_top, which allow us to scroll to top when we are reading an article and we want to go to the menu for example.

As you can see the structure of this file is not too different than Drupal 7 .info file and a typical content would look like the above one. For more information, see https://www.drupal.org/node/2000204.

Once you created this file, you can now go to the module installation page and install it. Although it doesn’t do anything yet, we just started 🙂