You are here

public function AddStyleSheetCommand::render in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/ckeditor/src/Ajax/AddStyleSheetCommand.php \Drupal\ckeditor\Ajax\AddStyleSheetCommand::render()

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

Overrides CommandInterface::render

File

core/modules/ckeditor/src/Ajax/AddStyleSheetCommand.php, line 56

Class

AddStyleSheetCommand
AJAX command to add style sheets to a CKEditor instance.

Namespace

Drupal\ckeditor\Ajax

Code

public function render() {
  return [
    'command' => 'ckeditor_add_stylesheet',
    'editor_id' => $this->editorId,
    'stylesheets' => $this->styleSheets,
  ];
}