Skip to content

Kirby 5.0.4

$modelCommit->call()

Handles the full call of the given action, runs the before and after hooks and updates the state of the given model.

$modelCommit->call(array $arguments, Closure $callback): mixed

Parameters

Name Type Default
$argumentsrequired array no default value
$callbackrequired Closure no default value

Return type

mixed

This method modifies the existing $modelcommit object it is applied to and returns it again.

Parent class

Kirby\Cms\ModelCommit