function OpenDialogCommand::setDialogTitle

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

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 134

Class

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

Namespace

Drupal\Core\Ajax

Code

public function setDialogTitle($title) {
    $this->setDialogOption('title', $title);
}

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