You are here

public static function BUEditorToolbarWrapper::set in BUEditor 8.2

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

Creates the singleton with the given toolbar reference.

2 calls to BUEditorToolbarWrapper::set()
Core::alterEditorJS in src/Plugin/BUEditorPlugin/Core.php
Alters JS data of a BUEditor Editor.
XPreview::alterEditorJS in src/Plugin/BUEditorPlugin/XPreview.php
Alters JS data of a BUEditor Editor.

File

src/BUEditorToolbarWrapper.php, line 32

Class

BUEditorToolbarWrapper
Defines a class that manages BUEditor toolbar data.

Namespace

Drupal\bueditor

Code

public static function set(array &$toolbar) {
  if (!static::$instance) {
    static::$instance = new static();
  }
  return static::$instance
    ->_set($toolbar);
}