You are here

public function AddStyleSheetCommand::addStyleSheet in Drupal 8

Same name and namespace in other branches
  1. 9 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\Ajax

Code

public function addStyleSheet($stylesheet) {
  $this->styleSheets[] = $stylesheet;
  return $this;
}