You are here

public function EditorDialogSave::render in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/editor/src/Ajax/EditorDialogSave.php \Drupal\editor\Ajax\EditorDialogSave::render()
  2. 9 core/modules/editor/src/Ajax/EditorDialogSave.php \Drupal\editor\Ajax\EditorDialogSave::render()

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

Overrides CommandInterface::render

File

core/modules/editor/src/Ajax/EditorDialogSave.php, line 35

Class

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

Namespace

Drupal\editor\Ajax

Code

public function render() {
  return [
    'command' => 'editorDialogSave',
    'values' => $this->values,
  ];
}