Steal, steal, steal from my old presentations

This commit is contained in:
benjamin melançon 2020-05-01 00:37:26 -04:00
parent 6ce773f7c5
commit 199da5ba07
2 changed files with 91 additions and 1 deletions

View file

@ -112,6 +112,14 @@ function frankenstein_form_node_frankenstein_form_alter(&$form, \Drupal\Core\For
}
```
{{% note %}}
There we go, there's a module! I think we're done here. Anyone have any ideas for the next 40 minutes?
.info files are not PHP. They cleverly indicate this by not starting with <?php
.module files are PHP...
{{% /note %}}
---
### Where to put these files
@ -512,10 +520,18 @@ Every contributed module can provide hooks, too.
---
Hooks work by naming convention.
To implement a hook, take the 'hook' part off the hook name and replace it with your module's (machine) name.
---
## Resources
Most of these links go to a page on [Drupal's API reference which is also a great place to go for an overview](https://api.drupal.org/api/drupal/9.0.x) of what tools are available to you as you pick through the pieces Drupal offers and assemble your module.
https://api.drupal.org/api/drupal/core%21core.api.php/group/extending/
---
### Key hooks
@ -685,6 +701,17 @@ Your project root `composer.json`:
---
### Examples for developers project
[drupal.org/project/examples](https://www.drupal.org/project/examples)
{{% note %}}
It's like it was written just for you.
{{% /note %}}
---
Drupal.org/planet to keep up to date with what is going on in the Drupal world.
@ -700,7 +727,6 @@ UnderstandDrupal.com shameless plug
{{% note %}}
{{% /note %}}
---
![Little rabbit in big grass](images/little-rabbit-in-big-grass.jpg)