2 namespace Drupal\ctools\Wizard;
4 interface WizardFactoryInterface {
8 * @param FormWizardInterface $wizard
10 * @param array $parameters
11 * The array of default parameters specific to this wizard.
13 * Whether or not this wizard is displayed via ajax modals.
17 public function getWizardForm(FormWizardInterface $wizard, array $parameters = [], $ajax = FALSE);
20 * @param string $class
21 * A class name implementing FormWizardInterface.
22 * @param array $parameters
23 * The array of parameters specific to this wizard.
25 * @return \Drupal\ctools\Wizard\FormWizardInterface
27 public function createWizard($class, array $parameters);
30 * Get the wizard form state.
32 * @param \Drupal\ctools\Wizard\FormWizardInterface $wizard
34 * @param array $parameters
35 * The array of parameters specific to this wizard.
38 * @return \Drupal\Core\Form\FormState
40 public function getFormState(FormWizardInterface $wizard, array $parameters, $ajax = FALSE);