function CKEditor5AspectsOfCKEditor5Plugin::__construct

Same name and namespace in other branches
  1. 11.x core/modules/ckeditor5/src/Attribute/CKEditor5AspectsOfCKEditor5Plugin.php \Drupal\ckeditor5\Attribute\CKEditor5AspectsOfCKEditor5Plugin::__construct()
  2. main core/modules/ckeditor5/src/Attribute/CKEditor5AspectsOfCKEditor5Plugin.php \Drupal\ckeditor5\Attribute\CKEditor5AspectsOfCKEditor5Plugin::__construct()

Constructs a CKEditor5AspectsOfCKEditor5Plugin attribute.

Parameters

class-string[] $plugins: The CKEditor 5 plugin classes provided. Found in the CKEditor5 global js object as {package.Class}.

array $config: (optional) A keyed array of additional values for the CKEditor 5 configuration.

Overrides Plugin::__construct

File

core/modules/ckeditor5/src/Attribute/CKEditor5AspectsOfCKEditor5Plugin.php, line 22

Class

CKEditor5AspectsOfCKEditor5Plugin
#[\Attribute(\Attribute::TARGET_CLASS)]

Namespace

Drupal\ckeditor5\Attribute

Code

public function __construct(public readonly array $plugins, public readonly array $config = []) {
}

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