public function StylesCombo::getButtons

Implements \Drupal\ckeditor\Plugin\CKEditorPluginButtonsInterface::getButtons().

Overrides CKEditorPluginButtonsInterface::getButtons

File

drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/StylesCombo.php, line 55
Contains \Drupal\ckeditor\Plugin\CKEditorPlugin\StylesCombo.

Class

StylesCombo
Defines the "stylescombo" plugin.

Namespace

Drupal\ckeditor\Plugin\CKEditorPlugin

Code

public function getButtons() {
  return array(
    'Styles' => array(
      'label' => t('Font style'),
      'image_alternative' => '<a href="#" role="button" aria-label="' . t('Styles') . '"><span class="ckeditor-button-dropdown">' . t('Styles') . '<span class="ckeditor-button-arrow"></span></span></a>',
    ),
  );
}