OpenModalDialogCommand

Defines an AJAX command to open certain content in a dialog in a modal dialog. Hierarchy class \Drupal\Core\Ajax\OpenDialogCommand implements CommandInterface, CommandWithAttachedAssetsInterface uses CommandWithAttachedAssetsTraitclass \Drupal\Core\Ajax\OpenModalDialogCommand Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Core/Ajax/OpenModalDialogCommand.php, line 10 Namespace Drupal\Core\Ajax Members Name Modifiers Type Description CommandWith

OpenDialogCommand::__construct

public OpenDialogCommand::__construct($selector, $title, $content, array $dialog_options = array(), $settings = NULL) Constructs an OpenDialogCommand object. Parameters string $selector: The selector of the dialog. string $title: The title of the dialog. string|array $content: The content that will be placed in the dialog, either a render array or an HTML string. array $dialog_options: (optional) Options to be passed to the dialog implementation. Any jQuery UI option can be used. See http://ap

OpenDialogCommand::setDialogTitle

public OpenDialogCommand::setDialogTitle($title) Sets the dialog title (an alias of setDialogOptions). Parameters string $title: The new title of the dialog. File core/lib/Drupal/Core/Ajax/OpenDialogCommand.php, line 121 Class OpenDialogCommand Defines an AJAX command to open certain content in a dialog. Namespace Drupal\Core\Ajax Code public function setDialogTitle($title) { $this->setDialogOptions('title', $title); }

OpenDialogCommand::setDialogOptions

public OpenDialogCommand::setDialogOptions($dialog_options) Sets the dialog options array. Parameters array $dialog_options: Options to be passed to the dialog implementation. Any jQuery UI option can be used. See http://api.jqueryui.com/dialog. File core/lib/Drupal/Core/Ajax/OpenDialogCommand.php, line 98 Class OpenDialogCommand Defines an AJAX command to open certain content in a dialog. Namespace Drupal\Core\Ajax Code public function setDialogOptions($dialog_options) { $this->

OpenDialogCommand::setDialogOption

public OpenDialogCommand::setDialogOption($key, $value) Sets a single dialog option value. Parameters string $key: Key of the dialog option. Any jQuery UI option can be used. See http://api.jqueryui.com/dialog. mixed $value: Option to be passed to the dialog implementation. File core/lib/Drupal/Core/Ajax/OpenDialogCommand.php, line 111 Class OpenDialogCommand Defines an AJAX command to open certain content in a dialog. Namespace Drupal\Core\Ajax Code public function setDialogOption($k

OpenDialogCommand::render

public OpenDialogCommand::render() Implements \Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render File core/lib/Drupal/Core/Ajax/OpenDialogCommand.php, line 128 Class OpenDialogCommand Defines an AJAX command to open certain content in a dialog. Namespace Drupal\Core\Ajax Code public function render() { // For consistency ensure the modal option is set to TRUE or FALSE. $this->dialogOptions['modal'] = isset($this->dialogOptions['modal']) &&

OpenDialogCommand::getDialogOptions

public OpenDialogCommand::getDialogOptions() Returns the dialog options. Return value array File core/lib/Drupal/Core/Ajax/OpenDialogCommand.php, line 87 Class OpenDialogCommand Defines an AJAX command to open certain content in a dialog. Namespace Drupal\Core\Ajax Code public function getDialogOptions() { return $this->dialogOptions; }

OpenDialogCommand::$title

The title of the dialog. Type: string File core/lib/Drupal/Core/Ajax/OpenDialogCommand.php, line 28 Class OpenDialogCommand Defines an AJAX command to open certain content in a dialog. Namespace Drupal\Core\Ajax Code protected $title;

OpenDialogCommand::$settings

Custom settings that will be passed to the Drupal behaviors on the content of the dialog. Type: array File core/lib/Drupal/Core/Ajax/OpenDialogCommand.php, line 53 Class OpenDialogCommand Defines an AJAX command to open certain content in a dialog. Namespace Drupal\Core\Ajax Code protected $settings;

OpenDialogCommand::$selector

The selector of the dialog. Type: string File core/lib/Drupal/Core/Ajax/OpenDialogCommand.php, line 21 Class OpenDialogCommand Defines an AJAX command to open certain content in a dialog. Namespace Drupal\Core\Ajax Code protected $selector;