class CKEditor5AspectsOfCKEditor5Plugin
Same name in this branch
- main core/modules/ckeditor5/src/Annotation/CKEditor5AspectsOfCKEditor5Plugin.php \Drupal\ckeditor5\Annotation\CKEditor5AspectsOfCKEditor5Plugin
Same name and namespace in other branches
- 11.x core/modules/ckeditor5/src/Attribute/CKEditor5AspectsOfCKEditor5Plugin.php \Drupal\ckeditor5\Attribute\CKEditor5AspectsOfCKEditor5Plugin
- 11.x core/modules/ckeditor5/src/Annotation/CKEditor5AspectsOfCKEditor5Plugin.php \Drupal\ckeditor5\Annotation\CKEditor5AspectsOfCKEditor5Plugin
- 10 core/modules/ckeditor5/src/Attribute/CKEditor5AspectsOfCKEditor5Plugin.php \Drupal\ckeditor5\Attribute\CKEditor5AspectsOfCKEditor5Plugin
- 10 core/modules/ckeditor5/src/Annotation/CKEditor5AspectsOfCKEditor5Plugin.php \Drupal\ckeditor5\Annotation\CKEditor5AspectsOfCKEditor5Plugin
- 9 core/modules/ckeditor5/src/Annotation/CKEditor5AspectsOfCKEditor5Plugin.php \Drupal\ckeditor5\Annotation\CKEditor5AspectsOfCKEditor5Plugin
Defines the CKEditor5 aspect of CKEditor5 plugin.
Attributes
#[\Attribute(\Attribute::TARGET_CLASS)]
Hierarchy
- class \Drupal\Component\Plugin\Attribute\AttributeBase implements \Drupal\Component\Plugin\Attribute\AttributeInterface
- class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
- class \Drupal\ckeditor5\Attribute\CKEditor5AspectsOfCKEditor5Plugin extends \Drupal\Component\Plugin\Attribute\Plugin
- class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
Expanded class hierarchy of CKEditor5AspectsOfCKEditor5Plugin
File
-
core/
modules/ ckeditor5/ src/ Attribute/ CKEditor5AspectsOfCKEditor5Plugin.php, line 12
Namespace
Drupal\ckeditor5\AttributeView source
class CKEditor5AspectsOfCKEditor5Plugin extends Plugin {
/**
* Constructs a CKEditor5AspectsOfCKEditor5Plugin attribute.
*
* @param class-string[] $plugins
* The CKEditor 5 plugin classes provided. Found in the CKEditor5 global js
* object as {package.Class}.
* @param array $config
* (optional) A keyed array of additional values for the CKEditor 5
* configuration.
*/
public function __construct(public readonly array $plugins, public readonly array $config = []) {
}
/**
* {@inheritdoc}
*/
public function get() : array|object {
return [
'plugins' => $this->plugins,
'config' => $this->config,
];
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.