Skip to content

Commit 623aaf9

Browse files
authored
Merge pull request #462 from edalzell/master
tpyo and modifier method
2 parents 0b70b05 + 684f80b commit 623aaf9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

content/collections/docs/forms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
274274
form = document.getElementById('form');
275275

276276
// On submit...
277-
xios.post(form.action, new FormData(form))
277+
axios.post(form.action, new FormData(form))
278278
.then(response => {
279279
console.log(response.data)
280280
});

content/pages/7.addons/2.classes/3.modifiers/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Parameters are used to modify the behavior of a modifier. They could be anything
2020

2121
## Example Class {#example-class}
2222

23-
Your modifier class must extend `Statamic\Extend\Modifer`.
23+
Your modifier class must extend `Statamic\Extend\Modifer`and have an `index` method. The `index` method is the entry point to your modifier.
2424

2525
The name of the file and class can differ depending on your situation. See [Multiple Modifiers](#multiple) below.
2626

@@ -67,7 +67,7 @@ site/addons/Bacon
6767

6868
### Primary vs. Secondary {#primary-secondary}
6969

70-
An addon's primary modifier will use the name of the addon.
70+
An addon's primary modifier will use the name of the addon.
7171

7272
``` .lang-template
7373
{{ variable | your_addon }}
@@ -111,7 +111,7 @@ The other two arguments are optional:
111111
## A More Elaborate Example {#elaborate-example}
112112

113113
Let's say we need a modifier that repeats things. Maybe even delicious things.
114-
114+
115115
``` .language-php
116116
<?php
117117

0 commit comments

Comments
 (0)