function DrupalImage::getButtons

File

core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php, line 50

Class

DrupalImage
Defines the "drupalimage" plugin.

Namespace

Drupal\ckeditor\Plugin\CKEditorPlugin

Code

public function getButtons() {
  return [
    'DrupalImage' => [
      'label' => $this->t('Image'),
      'image' => $this->getModulePath('ckeditor') . '/js/plugins/drupalimage/icons/drupalimage.png',
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.