BUEditorPluginBase.php in BUEditor 8
File
src/BUEditorPluginBase.php
View source
<?php
namespace Drupal\bueditor;
use Drupal\Core\Plugin\PluginBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\editor\Entity\Editor;
use Drupal\bueditor\Entity\BUEditorEditor;
abstract class BUEditorPluginBase extends PluginBase implements BUEditorPluginInterface {
public function getButtons() {
return [];
}
public function alterEditorJS(array &$js, BUEditorEditor $bueditor_editor, Editor $editor = NULL) {
}
public function alterToolbarWidget(array &$widget) {
}
public function alterEditorForm(array &$form, FormStateInterface $form_state, BUEditorEditor $bueditor_editor) {
}
public function validateEditorForm(array &$form, FormStateInterface $form_state, BUEditorEditor $bueditor_editor) {
}
}