Accessing event object

Hello community,

How can I get the model name from the $event object?

Thank you.

Try…
$event->sender::class ?

1 Like

Great, thank you.
Btw, is there any docs that explain all data and way to access them?
I now need all the data from that class (array).
And I need to change those values.

https://www.yiiframework.com/doc/api/2.0/yii-base-event

Was @tri answer sufficient?

Yes, but why?