From 5531a0e7a676215e680a28a18b03244e9b072bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 18 Mar 2020 09:53:10 -0400 Subject: [PATCH] Start to add what we'll actually cover --- web/content/_index.md | 57 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 49 insertions(+), 8 deletions(-) diff --git a/web/content/_index.md b/web/content/_index.md index ec890fd..6a082ce 100644 --- a/web/content/_index.md +++ b/web/content/_index.md @@ -172,16 +172,57 @@ You now know enough to be dangerous. --- +#### We'll cover + +* Hooks + * form_alter + * node_insert +* Plugins + * Block + * Formatter +* Services + * Route subscriber + * Event subscriber {{% note %}} -Doing something with a form? You want hook_form_alter() or one of its -{{% /note %}} - - ---- - - -{{% note %}} + +the three main ways to mess with Drupal 8 and 9: hooks, plugins, and services, with a couple examples in each. + +{{% /note %}} + +--- + + +{{% note %}} +both examples of what technically to do and how to do general things + +For example: + +Doing something with a form? You want hook_form_alter() or one of its variants. +{{% /note %}} + + +--- + +## Learning to learn + +* Drupal documentation +* Duck Duck Go (!g if you need Google results) +* Debugger - look for + +{{% note %}} +Where to start if i don't cover it in this session +{{% /note %}} + + +--- + +### When not to make a module + +{{% note %}} +find a contrib module that does it + +Should it be in a template {{% /note %}}