function TRexEditor::getJSSettings
Same name in other branches
- 9 core/modules/editor/tests/modules/editor_test/src/Plugin/Editor/TRexEditor.php \Drupal\editor_test\Plugin\Editor\TRexEditor::getJSSettings()
- 10 core/modules/editor/tests/modules/editor_test/src/Plugin/Editor/TRexEditor.php \Drupal\editor_test\Plugin\Editor\TRexEditor::getJSSettings()
- 11.x core/modules/editor/tests/modules/editor_test/src/Plugin/Editor/TRexEditor.php \Drupal\editor_test\Plugin\Editor\TRexEditor::getJSSettings()
Overrides EditorPluginInterface::getJSSettings
File
-
core/
modules/ editor/ tests/ modules/ src/ Plugin/ Editor/ TRexEditor.php, line 47
Class
- TRexEditor
- Defines a Tyrannosaurus-Rex powered text editor for testing purposes.
Namespace
Drupal\editor_test\Plugin\EditorCode
public function getJSSettings(Editor $editor) {
$js_settings = [];
$settings = $editor->getSettings();
if ($settings['stumpy_arms']) {
$js_settings['doMyArmsLookStumpy'] = TRUE;
}
return $js_settings;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.