O'Reilly logo

Drupal 8 Development Beginner's Guide - Second Edition by Kurt Madel, Malabya Tewari, Rakesh James, Krishna Kanth, Edward Crompton, Samuel Keen, Tassos Koutlas, Neeraj Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – developing a custom module in Drupal 8

Here we are going to create a custom module which will print Hello World in a page under the path: mypage/page. Follow the basics steps involved in the custom module development in Drupal 8. Before that, we will discuss the Drupal root directory structure.

Time for action – developing a custom module in Drupal 8

Look at the preceding screenshot. We will see what each directory contains:

  • /core: All the files provided by core that don't have an explicit reason to be in the / directory.
  • /modules: The directory into which all the custom and contrib modules go. Splitting this up into the sub-directories contrib and custom can make it easier to keep track ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required