function AddStyleSheetCommand::__construct

Same name in other branches
  1. 8.9.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.