You are here

public function BUEditorPluginManager::getButtons in BUEditor 8

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

Returns buttons defined by plugins.

Return value

array An array of button definitions keyed by button ids.

File

src/BUEditorPluginManager.php, line 123

Class

BUEditorPluginManager
Provides a plugin manager for BUEditor Plugins.

Namespace

Drupal\bueditor

Code

public function getButtons() {
  $buttons = [];
  foreach ($this
    ->getButtonGroups() as $plugin => $group) {
    $buttons = array_merge($buttons, $group['buttons']);
  }
  return $buttons;
}