public function StylesCombo::getButtons in Drupal 10
Same name and namespace in other branches
- 8 core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php \Drupal\ckeditor\Plugin\CKEditorPlugin\StylesCombo::getButtons()
- 9 core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php \Drupal\ckeditor\Plugin\CKEditorPlugin\StylesCombo::getButtons()
File
- core/
modules/ ckeditor/ src/ Plugin/ CKEditorPlugin/ StylesCombo.php, line 52
Class
- StylesCombo
- Defines the "stylescombo" plugin.
Namespace
Drupal\ckeditor\Plugin\CKEditorPluginCode
public function getButtons() {
return [
'Styles' => [
'label' => $this
->t('Font style'),
'image_alternative' => [
'#type' => 'inline_template',
'#template' => '<a href="#" role="button" aria-label="{{ styles_text }}"><span class="ckeditor-button-dropdown">{{ styles_text }}<span class="ckeditor-button-arrow"></span></span></a>',
'#context' => [
'styles_text' => $this
->t('Styles'),
],
],
],
];
}