You are here

public function OEmbedForm::addButtonSubmit in Media Directories 3.x

Same name and namespace in other branches
  1. 8 modules/media_directories_ui/src/Form/OEmbedForm.php \Drupal\media_directories_ui\Form\OEmbedForm::addButtonSubmit()
  2. 2.x modules/media_directories_ui/src/Form/OEmbedForm.php \Drupal\media_directories_ui\Form\OEmbedForm::addButtonSubmit()

Submit handler for the add button.

Parameters

array $form: The form render array.

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

File

modules/media_directories_ui/src/Form/OEmbedForm.php, line 163

Class

OEmbedForm

Namespace

Drupal\media_directories_ui\Form

Code

public function addButtonSubmit(array $form, FormStateInterface $form_state) {
  $this
    ->processInputValues([
    $form_state
      ->getValue('url'),
  ], $form, $form_state);
}