You are here

public function KitchenSink::getButtons in Panopoly 8.2

NOTE: The keys of the returned array corresponds to the CKEditor button names. They are the first argument of the editor.ui.addButton() or editor.ui.addRichCombo() functions in the plugin.js file.

Overrides CKEditorPluginButtonsInterface::getButtons

File

modules/panopoly/panopoly_wysiwyg/src/Plugin/CKEditorPlugin/KitchenSink.php, line 29

Class

KitchenSink
Defines the "panopoly_wysiwyg_kitchensink" plugin.

Namespace

Drupal\panopoly_wysiwyg\Plugin\CKEditorPlugin

Code

public function getButtons() {
  return [
    'panopoly_wysiwyg_kitchensink' => [
      'label' => t('Kitchen Sink'),
      'image' => drupal_get_path('module', 'panopoly_wysiwyg') . '/ckeditor/kitchensink/icons/kitchensink.png',
    ],
  ];
}