editorId = $editor_id; $this->styleSheets = $stylesheets; } /** * Adds a style sheet to the CKEditor instance. * * @param string $stylesheet * The style sheet URL. * * @return $this * The called object, for chaining. */ public function addStyleSheet($stylesheet) { $this->styleSheets[] = $stylesheet; return $this; } /** * {@inheritdoc} */ public function render() { return [ 'command' => 'ckeditor_add_stylesheet', 'editor_id' => $this->editorId, 'stylesheets' => $this->styleSheets, ]; } }