You are here

public function EditorBase::getDefaultSettings in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/editor/src/Plugin/EditorBase.php \Drupal\editor\Plugin\EditorBase::getDefaultSettings()
  2. 9 core/modules/editor/src/Plugin/EditorBase.php \Drupal\editor\Plugin\EditorBase::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 EditorPluginInterface::getDefaultSettings

2 methods override EditorBase::getDefaultSettings()
TRexEditor::getDefaultSettings in core/modules/editor/tests/modules/src/Plugin/Editor/TRexEditor.php
Returns the default settings for this configurable text editor.
UnicornEditor::getDefaultSettings in core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php
Returns the default settings for this configurable text editor.

File

core/modules/editor/src/Plugin/EditorBase.php, line 27

Class

EditorBase
Defines a base class from which other modules providing editors may extend.

Namespace

Drupal\editor\Plugin

Code

public function getDefaultSettings() {
  return [];
}