Commit 939d9c6e authored by kevinquillen's avatar kevinquillen Committed by kevinquillen

Issue #2800233 by kevinquillen: Refactor to remove dependency on config object

parent d198198d
......@@ -107,8 +107,13 @@ class CodeSnippet extends CKEditorPluginBase implements CKEditorPluginConfigurab
return $style_options;
}
/**
* Return the default style.
* @return string
*/
private function getDefaultStyle() {
return 'arta';
$styles = $this->getStyles();
return reset($styles);
}
/**
......@@ -122,8 +127,8 @@ class CodeSnippet extends CKEditorPluginBase implements CKEditorPluginConfigurab
* @return array
*/
private function getDefaultLanguages() {
$languages = $this->getLanguages();
return array_combine(array_keys($languages), array_keys($languages));
$languages = array_keys($this->getLanguages());
return array_combine($languages, $languages);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment