$modelCommit->hook()
Runs the given hook and modifies the first argument of the given arguments array. It returns an array with arguments
and result
keys.
$modelCommit->hook(string $hook, array $arguments): array
Parameters
Name | Type | Default |
---|---|---|
$hookrequired | string |
no default value |
$argumentsrequired | array |
no default value |
Return type
array
This method modifies the existing $modelcommit
object it is applied to and returns it again.