class OpenModalWizardCommand in Chaos Tool Suite (ctools) 8.3
Hierarchy
- class \Drupal\Core\Ajax\OpenDialogCommand implements CommandInterface, CommandWithAttachedAssetsInterface uses CommandWithAttachedAssetsTrait
- class \Drupal\Core\Ajax\OpenModalDialogCommand
- class \Drupal\ctools\Ajax\OpenModalWizardCommand
- class \Drupal\Core\Ajax\OpenModalDialogCommand
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 8
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 = isset($form['#title']) ? $form['#title'] : '';
$content = $form;
parent::__construct($title, $content, $dialog_options, $settings);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommandWithAttachedAssetsTrait:: |
protected | property | The attached assets for this Ajax command. | |
CommandWithAttachedAssetsTrait:: |
public | function | Gets the attached assets. | |
CommandWithAttachedAssetsTrait:: |
protected | function | Processes the content for output. | |
OpenDialogCommand:: |
protected | property | The content for the dialog. | |
OpenDialogCommand:: |
protected | property | Stores dialog-specific options passed directly to jQuery UI dialogs. Any jQuery UI option can be used. See http://api.jqueryui.com/dialog. | |
OpenDialogCommand:: |
protected | property | The selector of the dialog. | |
OpenDialogCommand:: |
protected | property | Custom settings that will be passed to the Drupal behaviors on the content of the dialog. | |
OpenDialogCommand:: |
protected | property | The title of the dialog. | |
OpenDialogCommand:: |
public | function | Returns the dialog options. | |
OpenDialogCommand:: |
public | function |
Implements \Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface:: |
1 |
OpenDialogCommand:: |
public | function | Sets a single dialog option value. | |
OpenDialogCommand:: |
public | function | Sets the dialog options array. | |
OpenDialogCommand:: |
public | function | Sets the dialog title (an alias of setDialogOptions). | |
OpenModalWizardCommand:: |
public | function |
Constructs an OpenModalDialog object. Overrides OpenModalDialogCommand:: |