Field::drawer()
Creates the routes for a field drawer This is most definitely not a good place for this method, but as long as the other classes are not fully refactored, it still feels appropriate
Field::drawer(Kirby\Cms\ModelWithContent $model, string $fieldName, ?string $path = null, string $method = 'GET')
Parameters
| Name | Type | Default |
|---|---|---|
| $model * | Kirby\Cms\ModelWithContent |
– |
| $fieldName * | string |
– |
| $path | string|null |
null |
| $method | string |
'GET' |