class OpenModalWizardCommand

Hierarchy

Expanded class hierarchy of OpenModalWizardCommand

1 file declares its use of OpenModalWizardCommand
FormWizardBase.php in src/Wizard/FormWizardBase.php

File

src/Ajax/OpenModalWizardCommand.php, line 10

Namespace

Drupal\ctools\Ajax
View source
class OpenModalWizardCommand extends OpenModalDialogCommand {
  
  /**
   *
   */
  public function __construct($object, $tempstore_id, array $parameters = [], array $dialog_options = [], $settings = NULL) {
    // Instantiate the wizard class properly.
    $parameters += [
      'tempstore_id' => $tempstore_id,
      'machine_name' => NULL,
      'step' => NULL,
    ];
    $form = \Drupal::service('ctools.wizard.factory')->getWizardForm($object, $parameters, TRUE);
    $title = $form['#title'] ?? '';
    $content = $form;
    parent::__construct($title, $content, $dialog_options, $settings);
  }

}

Members

Title Sort descending Modifiers Object type Summary
OpenModalWizardCommand::__construct public function