CKEditor5AspectsOfCKEditor5Plugin.php

Same filename in this branch
  1. 11.x core/modules/ckeditor5/src/Annotation/CKEditor5AspectsOfCKEditor5Plugin.php
Same filename and directory in other branches
  1. 9 core/modules/ckeditor5/src/Annotation/CKEditor5AspectsOfCKEditor5Plugin.php
  2. 10 core/modules/ckeditor5/src/Annotation/CKEditor5AspectsOfCKEditor5Plugin.php
  3. 10 core/modules/ckeditor5/src/Attribute/CKEditor5AspectsOfCKEditor5Plugin.php

Namespace

Drupal\ckeditor5\Attribute

File

core/modules/ckeditor5/src/Attribute/CKEditor5AspectsOfCKEditor5Plugin.php

View source
<?php

declare (strict_types=1);
namespace Drupal\ckeditor5\Attribute;

use Drupal\Component\Plugin\Attribute\Plugin;

/**
 * Defines the CKEditor5 aspect of CKEditor5 plugin.
 */
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,
    ];
  }

}

Classes

Title Deprecated Summary
CKEditor5AspectsOfCKEditor5Plugin Defines the CKEditor5 aspect of CKEditor5 plugin.

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