Skip to content

Kirby 5.1.3

$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

stringornull

This method modifies the existing $event object it is applied to and returns it again.

Parent class

Kirby\Cms\Event