$event->action()
Returns the action of the event (e.g. create
) or null
if the event name does not include an action
$event->action(): string|null
Return types
string
ornull
This method modifies the existing $event
object it is applied to and returns it again.