You are here

protected function CKEditorTest::getDefaultToolbarConfig in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php \Drupal\Tests\ckeditor\Kernel\CKEditorTest::getDefaultToolbarConfig()
2 calls to CKEditorTest::getDefaultToolbarConfig()
CKEditorTest::testBuildToolbarJSSetting in core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php
Tests CKEditor::buildToolbarJSSetting().
CKEditorTest::testGetJSSettings in core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php
Tests CKEditor::getJSSettings().

File

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

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