You are here

public function AceEditor::getDefaultSettings in Ace Code Editor 8

Returns the default settings for this configurable text editor.

Return value

array An array of settings as they would be stored by a configured text editor entity (\Drupal\editor\Entity\Editor).

Overrides EditorBase::getDefaultSettings

File

src/Plugin/Editor/AceEditor.php, line 28

Class

AceEditor
Defines AceEditor as an Editor plugin.

Namespace

Drupal\ace_editor\Plugin\Editor

Code

public function getDefaultSettings() {
  $config = \Drupal::config('ace_editor.settings')
    ->get();
  return $config;
}