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
Exemple : name: Test Module
description: 'Short description'
type: module
core: 8.x
version: TheVersion
Step 3. Activate the module
On admin/modules
Or using drush en test -y
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
Comments3
Small typo?
the example says "varsion" but I think it's supposed to say "version"
Thanks
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