How to create a simple module with Drupal 8
Module name : Test
Step 1. Create the module folder on module/custom directory
Exemple : module/custom/test
Step 2. Create info file on the root of the module folder (module/custom/test/test.info.yml) and configure. File name must be ModuleName.info.yml
name: Test Module
description: 'Short description'
Step 3. Activate the module
drush en test -y
Note : Here the minimum to create a module
I like it, you have explained very nicely.
the example says "varsion" but I think it's supposed to say "version"
Thank you !!!
How we can call block in specific region by same module
Thanks for your tutorial. i have a small question in this way block is created and by manually we can assign to any region from structure > block layout
but can we do this also via programming how please guide me how we can assign block to region automatically soon after we created the block from custom module
Add new comment