You are here

public function DrupalImage::getButtons in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalImage::getButtons()
  2. 9 core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php \Drupal\ckeditor\Plugin\CKEditorPlugin\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',
    ],
  ];
}