You are here

public function OEmbedForm::addButtonSubmit in Media Directories 8

Same name and namespace in other branches
  1. 3.x 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 174

Class

OEmbedForm
A form to add remote content using OEmbed resources.

Namespace

Drupal\media_directories_ui\Form

Code

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