public function UnicornEditor::getDefaultSettings in Drupal 10
Same name and namespace in other branches
- 8 core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php \Drupal\editor_test\Plugin\Editor\UnicornEditor::getDefaultSettings()
- 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\EditorCode
public function getDefaultSettings() {
return [
'ponies_too' => TRUE,
];
}