You are here

function WidgetCommon::getButtons in CKEditor Widgets 8

Implements \Drupal\ckeditor\Plugin\CKEditorPluginButtonsInterface::getButtons().

Overrides CKEditorPluginButtonsInterface::getButtons

File

src/Plugin/CKEditorPlugin/WidgetCommon.php, line 53
Definition of \Drupal\ckeditor_widgets\Plugin\CKEditorPlugin\AnchorLink.

Class

WidgetCommon
Defines the "widgetcommon" plugin.

Namespace

Drupal\ckeditor_widgets\Plugin\CKEditorPlugin

Code

function getButtons() {
  return array(
    'widgetcommonBox' => array(
      'label' => $this
        ->t('Insert box'),
      'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetcommon/icons/widgetcommonBox.png',
    ),
    'widgetcommonQuotebox' => array(
      'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetcommon/icons/widgetcommonQuotebox.png',
      'label' => $this
        ->t('Insert quote box'),
    ),
  );
}