class GeysirCloseModalDialogCommand in Geysir 8
Defines an AJAX command that closes the currently visible Geysir modal.
Hierarchy
- class \Drupal\Core\Ajax\CloseDialogCommand implements CommandInterface
- class \Drupal\geysir\Ajax\GeysirCloseModalDialogCommand
Expanded class hierarchy of GeysirCloseModalDialogCommand
1 file declares its use of GeysirCloseModalDialogCommand
File
- src/
Ajax/ GeysirCloseModalDialogCommand.php, line 12
Namespace
Drupal\geysir\AjaxView source
class GeysirCloseModalDialogCommand extends CloseDialogCommand {
/**
* Constructs a GeysirCloseModalDialogCommand object.
*
* @param bool $persist
* (optional) Whether to persist the dialog in the DOM or not.
*/
public function __construct($persist = FALSE) {
$this->selector = GeysirOpenModalDialogCommand::MODAL_SELECTOR;
$this->persist = $persist;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CloseDialogCommand:: |
protected | property | Whether to persist the dialog in the DOM or not. | |
CloseDialogCommand:: |
protected | property | A CSS selector string of the dialog to close. | |
CloseDialogCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |
|
GeysirCloseModalDialogCommand:: |
public | function |
Constructs a GeysirCloseModalDialogCommand object. Overrides CloseDialogCommand:: |