You are here

public function Find::getButtons in CKEditor Find/Replace 8

Implements CKEditorPluginButtonsInterface::getButtons().

Overrides CKEditorPluginButtonsInterface::getButtons

File

src/Plugin/CKEditorPlugin/Find.php, line 52

Class

Find
Defines the "find" plugin.

Namespace

Drupal\ckeditor_find\Plugin\CKEditorPlugin

Code

public function getButtons() {
  return [
    'Find' => [
      'label' => $this
        ->t('Find'),
      'image' => 'libraries/ckeditor/plugins/' . $this
        ->getPluginId() . '/icons/find.png',
    ],
    'Find RTL' => [
      'label' => $this
        ->t('Find RTL'),
      'image' => 'libraries/ckeditor/plugins/' . $this
        ->getPluginId() . '/icons/find-rtl.png',
    ],
    'Replace' => [
      'label' => $this
        ->t('Replace'),
      'image' => 'libraries/ckeditor/plugins/' . $this
        ->getPluginId() . '/icons/replace.png',
    ],
  ];
}