You are here

public function Gutenberg::getLangcodes in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Editor/Gutenberg.php \Drupal\gutenberg\Plugin\Editor\Gutenberg::getLangcodes()

Returns a list of language codes supported by CKEditor.

Return value

array An associative array keyed by language codes.

File

src/Plugin/Editor/Gutenberg.php, line 138

Class

Gutenberg
Defines a Gutenberg-based text editor for Drupal.

Namespace

Drupal\gutenberg\Plugin\Editor

Code

public function getLangcodes() {
  return [
    'en' => 'en',
  ];
}