function CodeBlock::defaultConfiguration
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ConfigurableInterface::defaultConfiguration
File
- 
              core/modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ CodeBlock.php, line 106 
Class
- CodeBlock
- CKEditor 5 Code Block plugin configuration.
Namespace
Drupal\ckeditor5\Plugin\CKEditor5PluginCode
public function defaultConfiguration() {
  return [
    'languages' => [
      [
        'language' => 'plaintext',
        'label' => 'Plain text',
      ],
      [
        'language' => 'c',
        'label' => 'C',
      ],
      [
        'language' => 'cs',
        'label' => 'C#',
      ],
      [
        'language' => 'cpp',
        'label' => 'C++',
      ],
      [
        'language' => 'css',
        'label' => 'CSS',
      ],
      [
        'language' => 'diff',
        'label' => 'Diff',
      ],
      [
        'language' => 'html',
        'label' => 'HTML',
      ],
      [
        'language' => 'java',
        'label' => 'Java',
      ],
      [
        'language' => 'javascript',
        'label' => 'JavaScript',
      ],
      [
        'language' => 'php',
        'label' => 'PHP',
      ],
      [
        'language' => 'python',
        'label' => 'Python',
      ],
      [
        'language' => 'ruby',
        'label' => 'Ruby',
      ],
      [
        'language' => 'typescript',
        'label' => 'TypeScript',
      ],
      [
        'language' => 'xml',
        'label' => 'XML',
      ],
    ],
  ];
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
