public function BUEditorEditor::getSettings in BUEditor 8.2
Same name and namespace in other branches
- 8 src/Entity/BUEditorEditor.php \Drupal\bueditor\Entity\BUEditorEditor::getSettings()
Returns all settings or a specific setting by key.
2 calls to BUEditorEditor::getSettings()
- BUEditorEditor::getJS in src/
Entity/ BUEditorEditor.php - Returns JS data including settings and libraries.
- BUEditorEditor::getToolbar in src/
Entity/ BUEditorEditor.php - Returns the toolbar array.
File
- src/
Entity/ BUEditorEditor.php, line 82
Class
- BUEditorEditor
- Defines the BUEditor Editor entity.
Namespace
Drupal\bueditor\EntityCode
public function getSettings($key = NULL, $default = NULL) {
$settings = $this->settings;
if (isset($key)) {
return isset($settings[$key]) ? $settings[$key] : $default;
}
return $settings;
}