function 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,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.