what we need to know to create custom modules in drupal 8
DESCRIPTION
- main folders structure - Symfony components in Drupal 8 - class autoloading standard - plugin systemTRANSCRIPT
![Page 1: What we need to know to create custom modules in Drupal 8](https://reader036.vdocument.in/reader036/viewer/2022082702/55424080b4c905e7448b45f9/html5/thumbnails/1.jpg)
What we need to know to create custom modules in Drupal 8
Oleksandr Ivanchenko - @alexsergivan
![Page 2: What we need to know to create custom modules in Drupal 8](https://reader036.vdocument.in/reader036/viewer/2022082702/55424080b4c905e7448b45f9/html5/thumbnails/2.jpg)
![Page 3: What we need to know to create custom modules in Drupal 8](https://reader036.vdocument.in/reader036/viewer/2022082702/55424080b4c905e7448b45f9/html5/thumbnails/3.jpg)
Main folders structure
![Page 4: What we need to know to create custom modules in Drupal 8](https://reader036.vdocument.in/reader036/viewer/2022082702/55424080b4c905e7448b45f9/html5/thumbnails/4.jpg)
.info.yml
![Page 5: What we need to know to create custom modules in Drupal 8](https://reader036.vdocument.in/reader036/viewer/2022082702/55424080b4c905e7448b45f9/html5/thumbnails/5.jpg)
.routing.yml
![Page 6: What we need to know to create custom modules in Drupal 8](https://reader036.vdocument.in/reader036/viewer/2022082702/55424080b4c905e7448b45f9/html5/thumbnails/6.jpg)
PSR-4 autoloading standard
![Page 7: What we need to know to create custom modules in Drupal 8](https://reader036.vdocument.in/reader036/viewer/2022082702/55424080b4c905e7448b45f9/html5/thumbnails/7.jpg)
DefaultController.php
![Page 8: What we need to know to create custom modules in Drupal 8](https://reader036.vdocument.in/reader036/viewer/2022082702/55424080b4c905e7448b45f9/html5/thumbnails/8.jpg)
Plugin system
“The D8 plugin system provides a set of guidelines and reusable code components to allow developers to expose pluggable components within their code and (as needed) support managing these components through the user interface.” drupal.org
Plugin systems examples:- Blocks- Field types- Field widget- Field formatters- Image effects- Input filter- CKEditor buttons- Entity types
![Page 9: What we need to know to create custom modules in Drupal 8](https://reader036.vdocument.in/reader036/viewer/2022082702/55424080b4c905e7448b45f9/html5/thumbnails/9.jpg)
Block plugin example
![Page 10: What we need to know to create custom modules in Drupal 8](https://reader036.vdocument.in/reader036/viewer/2022082702/55424080b4c905e7448b45f9/html5/thumbnails/10.jpg)
Drupal 8 forms
![Page 11: What we need to know to create custom modules in Drupal 8](https://reader036.vdocument.in/reader036/viewer/2022082702/55424080b4c905e7448b45f9/html5/thumbnails/11.jpg)
Add js
![Page 12: What we need to know to create custom modules in Drupal 8](https://reader036.vdocument.in/reader036/viewer/2022082702/55424080b4c905e7448b45f9/html5/thumbnails/12.jpg)
https://github.com/hechoendrupal/DrupalAppConsole
Drupal 8 Console scaffolding module generator