CloseModalDialogCommand

Defines an AJAX command that closes the currently visible modal dialog.

Hierarchy

Related topics

Ajax API
Overview for Drupal's Ajax API.

File

core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php, line 10

Namespace

Drupal\Core\Ajax

Members

Name Modifiers Type Description
CloseDialogCommand::$persist protected property Whether to persist the dialog in the DOM or not.
CloseDialogCommand::$selector protected property A CSS selector string of the dialog to close.
CloseDialogCommand::render public function Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render
CloseModalDialogCommand::__construct public function Constructs a CloseModalDialogCommand object. Overrides CloseDialogCommand::__construct
doc_Drupal
2016-10-29 08:50:03
Comments
Leave a Comment

Please login to continue.