You are here

protected function CKEditorTest::getDefaultToolbarConfig in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php \Drupal\Tests\ckeditor\Kernel\CKEditorTest::getDefaultToolbarConfig()
  2. 9 core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php \Drupal\Tests\ckeditor\Kernel\CKEditorTest::getDefaultToolbarConfig()

File

core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php, line 528

Class

CKEditorTest
Tests for the 'CKEditor' text editor plugin.

Namespace

Drupal\Tests\ckeditor\Kernel

Code

protected function getDefaultToolbarConfig() {
  return [
    [
      'name' => 'Formatting',
      'items' => [
        'Bold',
        'Italic',
      ],
    ],
    [
      'name' => 'Links',
      'items' => [
        'DrupalLink',
        'DrupalUnlink',
      ],
    ],
    [
      'name' => 'Lists',
      'items' => [
        'BulletedList',
        'NumberedList',
      ],
    ],
    [
      'name' => 'Media',
      'items' => [
        'Blockquote',
        'DrupalImage',
      ],
    ],
    [
      'name' => 'Tools',
      'items' => [
        'Source',
      ],
    ],
    '/',
  ];
}