Skip to content

Commit a4fca1a

Browse files
committed
Update Fieldtype parameter method name
1 parent 2d5c8de commit a4fca1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/advanced/addons/fieldtypes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ class SuperCheckbox extends Fieldtype
4444

4545
Typically a fieldtype doesn't need to define parameters up front as they are evaluated dynamically and checked for values at runtime. If you would like to support GraphQL with your fieldtype it is important to list out your parameters so the schema can be generated properly.
4646

47-
Coilpack provides a method `parameters()` for defining which parameters your fieldtype supports. This method will also pass along the field using the fieldtype so you can generate parameters specifically for it. However, this should only be necessary for more complicated fieldtypes like Grid.
47+
Coilpack provides a method `parametersForField()` for defining which parameters your fieldtype supports. This method will also pass along the field using the fieldtype so you can generate parameters specifically for it. However, this should only be necessary for more complicated fieldtypes like Grid.
4848

4949
```php
5050
use Expressionengine\Coilpack\Contracts\Field;
5151

5252
...
5353

54-
public function parameters(Field $field = null): array
54+
public function parametersForField(Field $field = null): array
5555
{
5656
return [
5757
new Expressionengine\Coilpack\Support\Parameter([

0 commit comments

Comments
 (0)