Drupal 8 Module Development
summary
Covers step‑by‑step how to build a Drupal 8 module: create an .info.yml and place code under SRC/Plugin/Block with one class per file, use namespaces and extend BlockBase to render markup, implement ConfigFormBase to build, validate and submit a settings form that saves to config, and declare routes in YAML with controllers returning responses. Emphasizes composer required for vendor components, type hints and visibility rules, and shows the custom block and form working end‑to‑end.
AI-written summary · about
chapters (16)
- 0:00Intro
- 2:57Object Oriented Programming
- 4:04Declaring Classes
- 5:39Namespaces
- 7:51Naming conventions
- 9:51Visibility
- 13:50Chaining
- 16:43File Structure
- 20:32Config API and Contiguration Entity API
- 21:09Why use configuration API?
- 23:22Block API Example
- 28:29Form API Example
- 29:53Routes and Controller
- 33:19Create Example Block Class
- 35:41Creating a custom form
- 36:25Implement getEditableContigNames








