
| Current Path : /var/www/html/strat/web/core/modules/ckeditor5/src/Attribute/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/strat/web/core/modules/ckeditor5/src/Attribute/CKEditor5AspectsOfCKEditor5Plugin.php |
<?php
declare(strict_types = 1);
namespace Drupal\ckeditor5\Attribute;
use Drupal\Component\Plugin\Attribute\Plugin;
#[\Attribute(\Attribute::TARGET_CLASS)]
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,
];
}
}