You are here

public function OpenDialogCommand::setDialogOption in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

File

core/lib/Drupal/Core/Ajax/OpenDialogCommand.php, line 113
Contains \Drupal\Core\Ajax\OpenDialogCommand.

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;
}