class EditorDialogSave implements CommandInterface (View source)

Provides an AJAX command for saving the contents of an editor dialog.

This command is implemented in editor.dialog.js in Drupal.AjaxCommands.prototype.editorDialogSave.

Properties

protected string $values

An array of values that will be passed back to the editor by the dialog.

Methods

__construct(string $values)

Constructs an EditorDialogSave object.

render()

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

Details

__construct(string $values)

Constructs an EditorDialogSave object.

Parameters

string $values

The values that should be passed to the form constructor in Drupal.

render()

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