3 namespace Drupal\Core\Ajax;
6 * Defines an AJAX command that sets jQuery UI dialog properties.
10 class SetDialogTitleCommand extends SetDialogOptionCommand {
13 * Constructs a SetDialogTitleCommand object.
15 * @param string $selector
16 * The selector of the dialog whose title will be set. If set to an empty
17 * value, the default modal dialog will be selected.
18 * @param string $title
19 * The title that will be set on the dialog.
21 public function __construct($selector, $title) {
22 $this->selector = $selector ? $selector : '#drupal-modal';
23 $this->optionName = 'title';
24 $this->optionValue = $title;