You are here

public function XPreview::getButtons in BUEditor 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/BUEditorPlugin/XPreview.php \Drupal\bueditor\Plugin\BUEditorPlugin\XPreview::getButtons()

Returns plugin buttons.

Return value

array An array of id:label pairs.

Overrides BUEditorPluginBase::getButtons

File

src/Plugin/BUEditorPlugin/XPreview.php, line 25

Class

XPreview
Defines BUEditor Ajax Preview plugin.

Namespace

Drupal\bueditor\Plugin\BUEditorPlugin

Code

public function getButtons() {
  return [
    'xpreview' => $this
      ->t('Preview'),
  ];
}