You are here

public function VideoDetectorCKEditorButton::getButtons in CKEditor Video Detector 8

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

src/Plugin/CKEditorPlugin/VideoDetectorCKEditorButton.php, line 34
Contains \Drupal\ckeditor_videodetector\Plugin\CKEditorPlugin\VideoDetectorCKEditorButton.

Class

VideoDetectorCKEditorButton
Defines the "videodetector" plugin.

Namespace

Drupal\ckeditor_videodetector\Plugin\CKEditorPlugin

Code

public function getButtons() {
  return array(
    'VideoDetector' => array(
      'label' => t('Video detector ckeditor button'),
      'image' => 'libraries/videodetector/icons/videodetector.svg',
    ),
  );
}