Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detail how to access updated Entry info from Entry:EVENT_AFTER_SAVE #6

Closed
ghost opened this issue Apr 21, 2018 · 1 comment
Closed

Comments

@ghost
Copy link

ghost commented Apr 21, 2018

I can't seem to get the Craft event info which I needed for the details of me Slack message.
I had assumed it would be data on $notifiable when defining public function toSlack($notifiable)
This however errors out.
If it is possible could you update the documentation with examples of collecting the data from an event such as which entry was changed.

@ghost ghost changed the title Detail how to access updated Entry info from Entry:EVENT_ON_SAVE Detail how to access updated Entry info from Entry:EVENT_AFTER_SAVE Apr 21, 2018
@riasvdv
Copy link

riasvdv commented May 15, 2018

You can access all the information of the event with $this->event in your notification.

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

No branches or pull requests

1 participant