You are here

public function BUEditorToolbarWrapper::_set in BUEditor 8

Same name and namespace in other branches
  1. 8.2 src/BUEditorToolbarWrapper.php \Drupal\bueditor\BUEditorToolbarWrapper::_set()

Sets the toolbar reference.

File

src/BUEditorToolbarWrapper.php, line 42

Class

BUEditorToolbarWrapper
Defines a class that manages BUEditor toolbar data.

Namespace

Drupal\bueditor

Code

public function _set(array &$toolbar) {
  if ($this->toolbar !== $toolbar) {
    $this->assocToolbar = array_combine($toolbar, $toolbar);
  }
  $this->toolbar =& $toolbar;
  return $this;
}