CKEditor5Test::SIMULATED_FORM_STRUCTURE

Same name in other branches
  1. 10 core/modules/ckeditor5/tests/src/Unit/CKEditor5Test.php \Drupal\Tests\ckeditor5\Unit\CKEditor5Test::SIMULATED_FORM_STRUCTURE
  2. 11.x core/modules/ckeditor5/tests/src/Unit/CKEditor5Test.php \Drupal\Tests\ckeditor5\Unit\CKEditor5Test::SIMULATED_FORM_STRUCTURE

Simulated CKEditor5::buildConfigurationForm() form structure.

File

core/modules/ckeditor5/tests/src/Unit/CKEditor5Test.php, line 25

Class

CKEditor5Test
@coversDefaultClass \Drupal\ckeditor5\Plugin\Editor\CKEditor5 @group ckeditor5 @internal

Namespace

Drupal\Tests\ckeditor5\Unit

Code

protected const SIMULATED_FORM_STRUCTURE = [
    'toolbar' => [
        'available' => [],
        'items' => [],
    ],
    'available_items_description' => [],
    'active_items_description' => [],
    'plugin_settings' => [],
    'plugins' => [
        'providerA_plugin1' => [],
        'providerB_plugin2' => [
            'foo' => [],
            'bar' => [],
        ],
    ],
];

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