How to prepare module skeleton for Drupal 8

4
(2)

This sub-section will guide you through the process of starting the process by creating, naming and correctly placing the .info.yml that becomes the starting point for every new module you create.

If you would like to clone the git repository of the example code contained in this section, you must have git installed and follow the instructions. You can clone git repository using following command:

git clone https://github.com/sidharrell/D8HWexample.git modules/custom/hello_world 

All of the files are downloaded by default but you can ‘hide’ them by checking out the ‘skeleton’ version to start with. To check it out, navigate to the module directory and use the following command:

git checkout skeleton

The rest of the branches should line up with the following sub-sections of this guide, and are designed to dovetail into their fuller counterparts in the Examples For Developers module found here.

Similar Posts:

1,124

How useful was this post?

Click on a star to rate it!

Average rating 4 / 5. Vote count: 2

No votes so far! Be the first to rate this post.

Scroll to Top