You are here

private function CodeSnippet::getDefaultStyle in CKEditor CodeSnippet 8

Return the default style if one is not set in active config.

This will be * the first one in the list of styles returned from getStyles().

Return value

string Default style.

2 calls to CodeSnippet::getDefaultStyle()
CodeSnippet::getConfig in src/Plugin/CKEditorPlugin/CodeSnippet.php
Returns the additions to CKEDITOR.config for a specific CKEditor instance.
CodeSnippet::settingsForm in src/Plugin/CKEditorPlugin/CodeSnippet.php
Returns a settings form to configure this CKEditor plugin.

File

src/Plugin/CKEditorPlugin/CodeSnippet.php, line 119

Class

CodeSnippet
Defines the "codesnippet" plugin.

Namespace

Drupal\codesnippet\Plugin\CKEditorPlugin

Code

private function getDefaultStyle() {
  $styles = $this
    ->getStyles();
  return reset($styles);
}