Wizard Help

BeforeWizard Event

The BeforeWizard event is raised before the Wizard has processed any steps.

Namespace

BeastBytes\Wizard\Event

Inherits

BeastBytes\Wizard\Event\BaseEvent

Methods

Name

Description

__construct()

Event constructor

getWizard()

Returns the Wizard instance that raised the event

isPropagationStopped()

Returns a value indicating whether event propagation is stopped

isWizardStopped()

Returns a value indicating whether the wizard is stopped

stopPropagation()

Stops event propagation

stopWizard()

Stops the wizard

Method Details

__construct()

Constructor

public function __construct(private WizardInterface $wizard)

Parameter

Type

Default

Description

$wizard

WizardInterface

Required

The Wizard instance that raised the event

getWizard()

Returns the Wizard instance that raised the event.

public function getWizard(): WizardInterface

Return

WizardInterface

The Wizard instance that raised the event

isPropagationStopped()

Returns a value indicating whether event propagation is stopped.

See also:

public function isPropagationStopped(): bool

Return

bool

Whether event propagation is stopped


false: if event propagation is not stopped


true: if event propagation is stopped

isWizardStopped()

Returns a value indicating whether the Wizard is stopped

See also:

public function isWizardStopped(): bool

Return

bool

Whether the Wizard is stopped


false: if the Wizard is not stopped


true: if the Wizard is stopped

stopPropagation()

Stops event propagation.

See also: isPropagationStopped()

public function stopPropagation(): void

stopWizard()

Stops the Wizard.

See also:

public function stopWizard(): void
Last modified: 27 January 2025