interface WizardFactoryInterface

Same name in other branches
  1. 4.0.x src/Wizard/WizardFactoryInterface.php \Drupal\ctools\Wizard\WizardFactoryInterface

Provide the WizardFactory.

Hierarchy

Expanded class hierarchy of WizardFactoryInterface

All classes that implement WizardFactoryInterface

2 files declare their use of WizardFactoryInterface
WizardEntityFormController.php in src/Controller/WizardEntityFormController.php
WizardFormController.php in src/Controller/WizardFormController.php

File

src/Wizard/WizardFactoryInterface.php, line 8

Namespace

Drupal\ctools\Wizard
View source
interface WizardFactoryInterface {
    
    /**
     * Get the wizard form.
     *
     * @param FormWizardInterface $wizard
     *   The form wizard.
     * @param array $parameters
     *   The array of default parameters specific to this wizard.
     * @param bool $ajax
     *   Whether or not this wizard is displayed via ajax modals.
     *
     * @return array
     *   Return array form.
     */
    public function getWizardForm(FormWizardInterface $wizard, array $parameters = [], $ajax = FALSE);
    
    /**
     * Create the wizard object.
     *
     * @param string $class
     *   A class name implementing FormWizardInterface.
     * @param array $parameters
     *   The array of parameters specific to this wizard.
     *
     * @return \Drupal\ctools\Wizard\FormWizardInterface
     *   Return the wizard interface.
     */
    public function createWizard($class, array $parameters);
    
    /**
     * Get the wizard form state.
     *
     * @param \Drupal\ctools\Wizard\FormWizardInterface $wizard
     *   The form wizard.
     * @param array $parameters
     *   The array of parameters specific to this wizard.
     * @param bool $ajax
     *   Use or not ajax.
     *
     * @return \Drupal\Core\Form\FormState
     *   Return the state form.
     */
    public function getFormState(FormWizardInterface $wizard, array $parameters, $ajax = FALSE);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
WizardFactoryInterface::createWizard public function Create the wizard object. 1
WizardFactoryInterface::getFormState public function Get the wizard form state. 1
WizardFactoryInterface::getWizardForm public function Get the wizard form. 1