Skip to content

Conversation

@Xint0
Copy link

@Xint0 Xint0 commented Jul 15, 2019

Describe that from version 1.8.0 onwards creating, created,
updating, updated, and saved event hooks must return the $model
instance.

Add documentation and code sample for saved event hook.

Remove return $data from deleting and deleted code samples, and
instead add comment on what the code may do on each case.

Closes #52 #

Describe that from version 1.8.0 onwards `creating`, `created`,
`updating`, `updated`, and `saved` event hooks must return the `$model`
instance.

Add documentation and code sample for `saved` event hook.

Remove `return $data` from `deleting` and `deleted` code samples, and
instead add comment on what the code may do on each case.
Add PHPDoc blocks to sample code.

`creating`, `updating`, and `saving` must always return `$data` array.
@yajra
Copy link
Owner

yajra commented Jul 16, 2019

@Xint0 thank you. Let's wait for @aminprox feedback for final decision on the PR if it will be reverted?

@Xint0
Copy link
Author

Xint0 commented Jul 16, 2019

OK, if you decide to revert the changes, I will update this PR accordingly.

@yajra
Copy link
Owner

yajra commented Aug 17, 2019

Sorry for late reply, I think we can stick to the changes on PR and update the docs accordingly. Thanks!

@yajra yajra merged commit 265cdff into yajra:master Aug 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update editor events documentation

3 participants