You are here

public function DrupalLink::getButtons in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalLink.php \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalLink::getButtons()
  2. 9 core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalLink.php \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalLink::getButtons()

File

core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalLink.php, line 48

Class

DrupalLink
Defines the "drupallink" plugin.

Namespace

Drupal\ckeditor\Plugin\CKEditorPlugin

Code

public function getButtons() {
  $path = $this
    ->getModulePath('ckeditor') . '/js/plugins/drupallink';
  return [
    'DrupalLink' => [
      'label' => $this
        ->t('Link'),
      'image' => $path . '/icons/drupallink.png',
    ],
    'DrupalUnlink' => [
      'label' => $this
        ->t('Unlink'),
      'image' => $path . '/icons/drupalunlink.png',
    ],
  ];
}