~/talk

Drupal 8 Module Development

Talkat DrupalCampSG 2018 · on Thursday, 2018-08-09· [php, web-platform]
links:none on file
slides:none on file

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

  1. 0:00Intro
  2. 2:57Object Oriented Programming
  3. 4:04Declaring Classes
  4. 5:39Namespaces
  5. 7:51Naming conventions
  6. 9:51Visibility
  7. 13:50Chaining
  8. 16:43File Structure
  9. 20:32Config API and Contiguration Entity API
  10. 21:09Why use configuration API?
  11. 23:22Block API Example
  12. 28:29Form API Example
  13. 29:53Routes and Controller
  14. 33:19Create Example Block Class
  15. 35:41Creating a custom form
  16. 36:25Implement getEditableContigNames
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.