You are here

public function CKEditor5PluginDefinition::toArray in Drupal 10

Gets an array representation of this CKEditor 5 plugin definition.

Return value

array

File

core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php, line 66

Class

CKEditor5PluginDefinition
Provides an implementation of a CKEditor 5 plugin definition.

Namespace

Drupal\ckeditor5\Plugin

Code

public function toArray() : array {
  return [
    'id' => $this
      ->id(),
    'provider' => $this->provider,
    'ckeditor5' => $this->ckeditor5,
    'drupal' => $this->drupal,
  ];
}