public function CloseDialogCommand::__construct

Constructs a CloseDialogCommand object.

Parameters

string $selector: A CSS selector string of the dialog to close.

1 method overrides CloseDialogCommand::__construct()
CloseModalDialogCommand::__construct in drupal/core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php
Constructs a CloseModalDialogCommand object.

File

drupal/core/lib/Drupal/Core/Ajax/CloseDialogCommand.php, line 28
Contains \Drupal\Core\Ajax\CloseDialogCommand.

Class

CloseDialogCommand
Defines an AJAX command that closes the current active dialog.

Namespace

Drupal\Core\Ajax

Code

public function __construct($selector = NULL) {
  $this->selector = $selector ? $selector : '#drupal-modal';
}