Documentation

BeforeActionEvent extends Event
in package

An abstract base event.

Table of Contents

Properties

$arguments  : array<string|int, mixed>
Arguments for the controller method.
$cancelled  : bool
Set this `true` to prevent the controller method from executing.
$handled  : bool
$method  : string
Method name for the controller.
$sender  : object|null

Methods

__construct()  : mixed
update()  : void

Properties

$arguments

Arguments for the controller method.

public array<string|int, mixed> $arguments

$cancelled

Set this `true` to prevent the controller method from executing.

public bool $cancelled = false

It's advised that the handler actually does something - like print to output or redirect.

$handled

public bool $handled = false

$sender

public object|null $sender = null

Methods

__construct()

public __construct([iterable<string|int, mixed> $config = [] ]) : mixed
Parameters
$config : iterable<string|int, mixed> = []

update()

public update(iterable<string|int, mixed> $config) : void
Parameters
$config : iterable<string|int, mixed>
On this page

Search results