You are here

public function UnicornEditor::getDefaultSettings in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php \Drupal\editor_test\Plugin\Editor\UnicornEditor::getDefaultSettings()
  2. 9 core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php \Drupal\editor_test\Plugin\Editor\UnicornEditor::getDefaultSettings()

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

core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php, line 29

Class

UnicornEditor
Defines a Unicorn-powered text editor for Drupal (for testing purposes).

Namespace

Drupal\editor_test\Plugin\Editor

Code

public function getDefaultSettings() {
  return [
    'ponies_too' => TRUE,
  ];
}