Skip to content

Kirby 6.0.0

Changes::publish()

Saves the latest state of changes first and then publishes them

Changes::publish(ModelWithContent $model, array $input): array

Parameters

Name Type Default
$modelrequired Kirby\Cms\ModelWithContent no default value
$inputrequired array no default value

Return type

array<string, mixed>

Parent class

Kirby\Api\Controller\Changes