class OpenModalWizardCommand
Same name in other branches
- 4.0.x src/Ajax/OpenModalWizardCommand.php \Drupal\ctools\Ajax\OpenModalWizardCommand
Hierarchy
- class \Drupal\Core\Ajax\OpenDialogCommand implements \Drupal\Core\Ajax\CommandInterface, \Drupal\Core\Ajax\CommandWithAttachedAssetsInterface uses \Drupal\Core\Ajax\CommandWithAttachedAssetsTrait
- class \Drupal\Core\Ajax\OpenModalDialogCommand extends \Drupal\Core\Ajax\OpenDialogCommand
- class \Drupal\ctools\Ajax\OpenModalWizardCommand extends \Drupal\Core\Ajax\OpenModalDialogCommand
- class \Drupal\Core\Ajax\OpenModalDialogCommand extends \Drupal\Core\Ajax\OpenDialogCommand
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\AjaxView 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 | Overriden Title | Overrides |
---|---|---|---|---|---|
CommandWithAttachedAssetsTrait::$attachedAssets | protected | property | The attached assets for this Ajax command. | ||
CommandWithAttachedAssetsTrait::getAttachedAssets | public | function | Gets the attached assets. | ||
CommandWithAttachedAssetsTrait::getRenderedContent | protected | function | Processes the content for output. | ||
OpenDialogCommand::$content | protected | property | The content for the dialog. | ||
OpenDialogCommand::$dialogOptions | protected | property | Stores dialog-specific options passed directly to jQuery UI dialogs. | ||
OpenDialogCommand::$selector | protected | property | The selector of the dialog. | ||
OpenDialogCommand::$settings | protected | property | Custom settings passed to Drupal behaviors on the content of the dialog. | ||
OpenDialogCommand::$title | protected | property | The title of the dialog. | ||
OpenDialogCommand::getDialogOptions | public | function | Returns the dialog options. | ||
OpenDialogCommand::render | public | function | Implements \Drupal\Core\Ajax\CommandInterface:render(). | Overrides CommandInterface::render | 1 |
OpenDialogCommand::setDialogOption | public | function | Sets a single dialog option value. | ||
OpenDialogCommand::setDialogOptions | public | function | Sets the dialog options array. | ||
OpenDialogCommand::setDialogTitle | public | function | Sets the dialog title (an alias of setDialogOptions). | ||
OpenModalWizardCommand::__construct | public | function | Constructs an OpenModalDialog object. | Overrides OpenModalDialogCommand::__construct |