function AddStyleSheetCommand::addStyleSheet
Same name in other branches
- 8.9.x core/modules/ckeditor/src/Ajax/AddStyleSheetCommand.php \Drupal\ckeditor\Ajax\AddStyleSheetCommand::addStyleSheet()
Adds a style sheet to the CKEditor instance.
Parameters
string $stylesheet: The style sheet URL.
Return value
$this The called object, for chaining.
File
-
core/
modules/ ckeditor/ src/ Ajax/ AddStyleSheetCommand.php, line 48
Class
- AddStyleSheetCommand
- AJAX command to add style sheets to a CKEditor instance.
Namespace
Drupal\ckeditor\AjaxCode
public function addStyleSheet($stylesheet) {
$this->styleSheets[] = $stylesheet;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.