You are here

public function AddStyleSheetCommand::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/ckeditor/src/Ajax/AddStyleSheetCommand.php \Drupal\ckeditor\Ajax\AddStyleSheetCommand::__construct()

AddStyleSheetCommand constructor.

Parameters

string $editor_id: The CKEditor instance ID.

string[] $stylesheets: The style sheet URLs to add to the CKEditor instance.

File

core/modules/ckeditor/src/Ajax/AddStyleSheetCommand.php, line 34

Class

AddStyleSheetCommand
AJAX command to add style sheets to a CKEditor instance.

Namespace

Drupal\ckeditor\Ajax

Code

public function __construct($editor_id, array $stylesheets = []) {
  $this->editorId = $editor_id;
  $this->styleSheets = $stylesheets;
}