You are here

public function Gutenberg::buildToolbarJsSetting in Gutenberg 8.2

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

Builds the "toolbar" configuration part of the CKEditor JS settings.

Parameters

\Drupal\editor\Entity\Editor $editor: A configured text editor object.

Return value

array An array containing the "toolbar" configuration.

See also

getJsSettings()

File

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

Class

Gutenberg
Defines a Gutenberg-based text editor for Drupal.

Namespace

Drupal\gutenberg\Plugin\Editor

Code

public function buildToolbarJsSetting(Editor $editor) {
  $toolbar = [];
  return $toolbar;
}