improve spacing, formatting
This commit is contained in:
parent
6adefc5c04
commit
524aa294e4
1 changed files with 37 additions and 4 deletions
|
@ -161,6 +161,29 @@ And we're going to tell you how you can figure out all of that.
|
|||
|
||||
---
|
||||
|
||||
`frankenstein.info.yml`
|
||||
|
||||
```yaml
|
||||
name: Frankenstein
|
||||
type: module
|
||||
description: "Rename save button for Frankenstein's content."
|
||||
core: 8.x|9.x
|
||||
```
|
||||
|
||||
|
||||
|
||||
`frankenstein.module`
|
||||
|
||||
```php
|
||||
<?php
|
||||
function frankenstein_form_node_frankenstein_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state) {
|
||||
$form['actions']['submit']['#value'] = t('Re-animate!');
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
A few basic approaches give a lot of power.
|
||||
|
||||
<img alt="Screwdriver with extensive collection of driver tips." src="images/screwdriver-tip-set.jpg" width="70%" />
|
||||
|
@ -209,13 +232,23 @@ With our dirty secrets acknowledged, on with the show.
|
|||
|
||||
---
|
||||
|
||||
1. Act One: How Not To Make a Module
|
||||
2. Act Two: How Not To Have to Make a Whole Module
|
||||
3. Act Three: How To Make a Module
|
||||
4. Act Four: How To Figure Out How To Make a Module
|
||||
|
||||
## The Show
|
||||
|
||||
- Act One: **How Not To Make a Module**
|
||||
- Act Two: **How Not To Have to Make a Whole Module**
|
||||
- Act Three: **How To Make a Module**
|
||||
- Act Four: **How To Figure Out How To Make a Module**
|
||||
|
||||
|
||||
{{% note %}}
|
||||
With our dirty secrets acknowledged, on with the show.
|
||||
{{% /note %}}
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
## We'll cover
|
||||
|
||||
* Hooks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue