You are here

public function TRexEditor::getDefaultSettings in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/editor/tests/modules/src/Plugin/Editor/TRexEditor.php \Drupal\editor_test\Plugin\Editor\TRexEditor::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/TRexEditor.php, line 28

Class

TRexEditor
Defines a Tyrannosaurus-Rex powered text editor for testing purposes.

Namespace

Drupal\editor_test\Plugin\Editor

Code

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