class CloseModalDialogCommand extends CloseDialogCommand (View source)

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

Properties

protected string $selector

A CSS selector string of the dialog to close.

from  CloseDialogCommand
protected bool $persist

Whether to persist the dialog in the DOM or not.

from  CloseDialogCommand

Methods

__construct(bool $persist = FALSE)

Constructs a CloseModalDialogCommand object.

render()

Return an array to be run through json_encode and sent to the client.

Details

__construct(bool $persist = FALSE)

Constructs a CloseModalDialogCommand object.

Parameters

bool $persist

(optional) Whether to persist the dialog in the DOM or not.

render()

Return an array to be run through json_encode and sent to the client.