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