File tree 2 files changed +4
-4
lines changed
pages/7.addons/2.classes/3.modifiers
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
274
274
form = document .getElementById (' form' );
275
275
276
276
// On submit...
277
- xios .post (form .action , new FormData (form))
277
+ axios .post (form .action , new FormData (form))
278
278
.then (response => {
279
279
console .log (response .data )
280
280
});
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Parameters are used to modify the behavior of a modifier. They could be anything
20
20
21
21
## Example Class {#example-class}
22
22
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 .
24
24
25
25
The name of the file and class can differ depending on your situation. See [ Multiple Modifiers] ( #multiple ) below.
26
26
@@ -67,7 +67,7 @@ site/addons/Bacon
67
67
68
68
### Primary vs. Secondary {#primary-secondary}
69
69
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.
71
71
72
72
``` .lang-template
73
73
{{ variable | your_addon }}
@@ -111,7 +111,7 @@ The other two arguments are optional:
111
111
## A More Elaborate Example {#elaborate-example}
112
112
113
113
Let's say we need a modifier that repeats things. Maybe even delicious things.
114
-
114
+
115
115
``` .language-php
116
116
<?php
117
117
You can’t perform that action at this time.
0 commit comments