Finish super simple example
This commit is contained in:
parent
de2ca0c4d5
commit
4100649d45
1 changed files with 45 additions and 2 deletions
|
@ -6,11 +6,23 @@ outputs = ["Reveal"]
|
|||
# When There's Not a Module For That
|
||||
|
||||
|
||||
---
|
||||
|
||||
###### Presented by
|
||||
|
||||
**Benjamin Melançon** & **Mauricio Dinarte**
|
||||
|
||||
###### AKA
|
||||
|
||||
**mlncn** & **dinarcon**
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
<img alt="Agaric" src="images/agaric-logo-stacked.png" class="plain" />
|
||||
|
||||
**ask@agaric.coop**
|
||||
|
||||
---
|
||||
|
||||
|
@ -21,8 +33,39 @@ outputs = ["Reveal"]
|
|||
---
|
||||
|
||||
|
||||
`frankenstein.info.yml`
|
||||
|
||||
```yaml
|
||||
name: Frankenstein
|
||||
type: module
|
||||
description: "Rename save button for Frankenstein's content."
|
||||
core: 8.x
|
||||
```
|
||||
|
||||
`frankenstein.module`
|
||||
|
||||
```php
|
||||
function something() {
|
||||
return 'nothing';
|
||||
<?php
|
||||
function frankenstein_form_node_frankenstein_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state) {
|
||||
$form['actions']['submit']['#value'] = t('Re-animate!');
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
**Enable your module:**
|
||||
|
||||
`drush -y en frankenstein`
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
*That slide was the most important you're going to be shown.*
|
||||
|
||||
# Enable your module
|
||||
|
||||
|
||||
---
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue