CloseDialogCommand
class CloseDialogCommand
Defines an AJAX command that closes the current active dialog.
Hierarchy
- class \Drupal\Core\Ajax\CloseDialogCommand implements CommandInterface
Related topics
- Ajax API
- Overview for Drupal's Ajax API.
File
- core/lib/Drupal/Core/Ajax/CloseDialogCommand.php, line 10
Namespace
Drupal\Core\AjaxMembers
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 |
CloseDialogCommand::__construct | public | function | Constructs a CloseDialogCommand object. |
© 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!CloseDialogCommand.php/class/CloseDialogCommand/8.1.x