public function AddStyleSheetCommand::render in Drupal 10
Same name and namespace in other branches
- 8 core/modules/ckeditor/src/Ajax/AddStyleSheetCommand.php \Drupal\ckeditor\Ajax\AddStyleSheetCommand::render()
- 9 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\AjaxCode
public function render() {
return [
'command' => 'ckeditor_add_stylesheet',
'editor_id' => $this->editorId,
'stylesheets' => $this->styleSheets,
];
}