3 namespace Drupal\ctools\Ajax;
5 use Drupal\Core\Ajax\OpenModalDialogCommand;
7 class OpenModalWizardCommand extends OpenModalDialogCommand {
9 public function __construct($object, $tempstore_id, array $parameters = array(), array $dialog_options = array(), $settings = NULL) {
10 // Instantiate the wizard class properly.
12 'tempstore_id' => $tempstore_id,
13 'machine_name' => NULL,
16 $form = \Drupal::service('ctools.wizard.factory')->getWizardForm($object, $parameters, TRUE);
17 $title = isset($form['#title']) ? $form['#title'] : '';
20 parent::__construct($title, $content, $dialog_options, $settings);