You are here

function WidgetTemplateMenu::getButtons in CKEditor Widgets 8

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

Overrides CKEditorPluginButtonsInterface::getButtons

File

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

Class

WidgetTemplateMenu
Defines the "widgettemplatemenu" plugin.

Namespace

Drupal\ckeditor_widgets\Plugin\CKEditorPlugin

Code

function getButtons() {
  return array(
    'oembed' => array(
      'label' => $this
        ->t('Insert media'),
      'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgettemplatemenu/extraIcons/oembed.png',
    ),
    'codeSnippet' => array(
      'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgettemplatemenu/extraIcons/codesnippet.png',
      'label' => $this
        ->t('Insert code snippet'),
    ),
    'leaflet' => array(
      'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgettemplatemenu/extraIcons/leaflet.png',
      'label' => $this
        ->t('Insert leaflet map'),
    ),
    'FontAwesome' => array(
      'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgettemplatemenu/extraIcons/fontawesome.png',
      'label' => $this
        ->t('Insert Font Awesome icon'),
    ),
    'WidgetTemplateMenu' => array(
      'image' => drupal_get_path('module', 'ckeditor_widgets') . '/js/plugins/widgettemplatemenu/icons/widgettemplatemenu.png',
      'label' => $this
        ->t('Add Template Menu'),
    ),
  );
}