Skip to content

Kirby 4.2.0

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 $path = null, string $method = 'GET')

Parameters

Name Type Default
$model * Kirby\Cms\ModelWithContent
$fieldName * string
$path string|null null
$method string 'GET'

Parent class

Kirby\Panel\Field