public function BUEditorPluginManager::getButtons in BUEditor 8
Same name and namespace in other branches
- 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\bueditorCode
public function getButtons() {
$buttons = [];
foreach ($this
->getButtonGroups() as $plugin => $group) {
$buttons = array_merge($buttons, $group['buttons']);
}
return $buttons;
}