Your cart is empty!
After Setup
public function onAfterSetupVikRestaurantsWizard( Wizard $wizard ) : void
Fires after completing the wizard setup.
Description
Trigger hook after completing the wizard setup. This is useful, in example, to rearrange the registered steps.
Parameters
- $wizard
-
(Wizard) The instance handling the wizard steps. This class is part of the
E4J\VikRestaurants\Wizard
namespace.
Return Value
None.
Example
The example below provides the instantiation of the "test" step located within the VikRestaurants - E4J plugin.
/plugins/vikrestaurants/e4j/wizard/step.php
/**
* Trigger event after completing the wizard setup.
* This is useful, in example, to rearrange the registered steps.
*
* @param Wizard $wizard The wizard instance.
*
* @return void
*/
public function onAfterSetupVikRestaurantsWizard($wizard)
{
// register test step
$wizard->addStep(new VREWizardStepTest);
// add dependency with the "System" and "Sections" step, meaning that this step
// won't be accessible until both the mentioned steps have been completed
$wizard['test']->addDependency($wizard['system']);
$wizard['test']->addDependency($wizard['sections']);
}
Changelog
Version | Description |
---|---|
1.8.2 | Introduced. |
Last Update: 2023-12-29 14:15
Helpful?