You are here

public function UEditor::submitConfigurationForm in UEditor - 百度编辑器 8

Form submission handler.

Parameters

array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().

Overrides EditorBase::submitConfigurationForm

File

src/Plugin/Editor/UEditor.php, line 345

Class

UEditor
Defines a UEditor-based text editor for Drupal.

Namespace

Drupal\ueditor\Plugin\Editor

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setValue([
    'basic',
  ], $form_state
    ->getValue([
    'basic',
  ]));
}