public function 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 118

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Ajax!OpenDialogCommand.php/function/OpenDialogCommand::setDialogTitle/8.1.x