This tutorial will show easy steps and helps you to create custom module within few minutes.
Note: Content or example of this tutorial may change according to Drupal 8 version and its release.
This tutorial is divided into three small sections.
In first section of this tutorial we will see what directory structure we need to create for a custom module.
In second section we will see what type files we need to create.
And in last section we will see what code we need to write in those files and configure them in Drupal 8.
1 Directory Structure
All custom module in Drupal 8 reside under “module” directory of Drupal 8 project.
To create a custom module we will create a new directory named “document” under custom folder.
Following is directory structure.
2 Configuration filesSecond thing that we need to create is YAML files which represent custom module conf…