public function AddStyleSheetCommand::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/ckeditor/src/Ajax/AddStyleSheetCommand.php \Drupal\ckeditor\Ajax\AddStyleSheetCommand::__construct()
- 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\AjaxCode
public function __construct($editor_id, array $stylesheets = []) {
$this->editorId = $editor_id;
$this->styleSheets = $stylesheets;
}