function CKEditor5PluginDefinition::toArray

Same name and namespace in other branches
  1. 9 core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::toArray()
  2. 10 core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::toArray()

Gets an array representation of this CKEditor 5 plugin definition.

Return value

array

File

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

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,
    ];
}

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