You are here

public function BUEditorEditor::getSettings in BUEditor 8.2

Same name and namespace in other branches
  1. 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\Entity

Code

public function getSettings($key = NULL, $default = NULL) {
  $settings = $this->settings;
  if (isset($key)) {
    return isset($settings[$key]) ? $settings[$key] : $default;
  }
  return $settings;
}