You are here

function WidgetBootstrap::getButtons in CKEditor Widgets 8

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

Overrides CKEditorPluginButtonsInterface::getButtons

File

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

Class

WidgetBootstrap
Defines the "widgetbootstrap" plugin.

Namespace

Drupal\ckeditor_widgets\Plugin\CKEditorPlugin

Code

function getButtons() {
  return array(
    'widgetbootstrapLeftCol' => array(
      'label' => $this
        ->t('Insert left column box'),
      'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetbootstrap/icons/widgetbootstrapLeftCol.png',
    ),
    'widgetbootstrapRightCol' => array(
      'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetbootstrap/icons/widgetbootstrapRightCol.png',
      'label' => $this
        ->t('Insert right column box'),
    ),
    'widgetbootstrapTwoCol' => array(
      'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetbootstrap/icons/widgetbootstrapTwoCol.png',
      'label' => $this
        ->t('Insert two column box'),
    ),
    'widgetbootstrapThreeCol' => array(
      'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetbootstrap/icons/widgetbootstrapThreeCol.png',
      'label' => $this
        ->t('Insert three column box'),
    ),
    'widgetbootstrapAlert' => array(
      'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetbootstrap/icons/widgetbootstrapAlert.png',
      'label' => $this
        ->t('Insert alert box'),
    ),
    'widgetbootstrapAccordion' => array(
      'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgetbootstrap/icons/widgetbootstrapAccordion.png',
      'label' => $this
        ->t('Insert accordion box'),
    ),
  );
}