class CloseDialogCommand implements CommandInterface (View source)

Defines an AJAX command that closes the current active dialog.

Properties

protected string $selector

A CSS selector string of the dialog to close.

protected bool $persist

Whether to persist the dialog in the DOM or not.

Methods

__construct(string $selector = NULL, bool $persist = FALSE)

Constructs a CloseDialogCommand object.

render()

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

Details

__construct(string $selector = NULL, bool $persist = FALSE)

Constructs a CloseDialogCommand object.

Parameters

string $selector

A CSS selector string of the dialog to close.

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.