function OpenDialogCommand::setDialogOption

Same name in other branches
  1. 9 core/lib/Drupal/Core/Ajax/OpenDialogCommand.php \Drupal\Core\Ajax\OpenDialogCommand::setDialogOption()
  2. 8.9.x core/lib/Drupal/Core/Ajax/OpenDialogCommand.php \Drupal\Core\Ajax\OpenDialogCommand::setDialogOption()
  3. 11.x core/lib/Drupal/Core/Ajax/OpenDialogCommand.php \Drupal\Core\Ajax\OpenDialogCommand::setDialogOption()

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.

1 call to OpenDialogCommand::setDialogOption()
OpenDialogCommand::setDialogTitle in core/lib/Drupal/Core/Ajax/OpenDialogCommand.php
Sets the dialog title (an alias of setDialogOptions).

File

core/lib/Drupal/Core/Ajax/OpenDialogCommand.php, line 124

Class

OpenDialogCommand
Defines an AJAX command to open certain content in a dialog.

Namespace

Drupal\Core\Ajax

Code

public function setDialogOption($key, $value) {
    $this->dialogOptions[$key] = $value;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.