Skip to content

Kirby 5.0.4

Field::dialog()

Creates the routes for a field dialog 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::dialog(Kirby\Cms\ModelWithContent $model, string $fieldName, string|null $path = null, string $method = 'GET')

Parameters

Name Type Default
$modelrequired Kirby\Cms\ModelWithContent no default value
$fieldNamerequired string no default value
$path stringornull null
$method string 'GET'

Parent class

Kirby\Panel\Field