Skip to content

class Athena::Framework::Events::View
inherits Athena::EventDispatcher::Event #

Emitted after the route's action has been executed, but only if it does NOT return an ATH::Response.

This event can be listened on to handle converting a non ATH::Response into an ATH::Response.

See ATH::Listeners::View and the external documentation for more information.

Included modules

Athena::Framework::Events::RequestAware Athena::Framework::Events::SettableResponse

Constructors#

.new(request : ATH::Request, action_result : _) #

View source

Methods#

#action_result #

Returns the value returned from the related controller action.

View source

#action_result=(value : _) : Nil #

Overrides the return value of the related controller action.

Can be used to mutate the controller action's returned value within a listener context; such as for pagination.

View source