You are here

public function YouTubePluginForm::submitForm in CKEditor Youtube 8

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides ConfigFormBase::submitForm

File

src/Form/YouTubePluginForm.php, line 47

Class

YouTubePluginForm
Provide settings for CKEditor Youtube plugin.

Namespace

Drupal\ckeditor_youtube\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $values = $form_state
    ->getValues();
  $this
    ->config('ckeditor_youtube.settings')
    ->set('library_path', $values['library_path'])
    ->save();
  parent::submitForm($form, $form_state);
}