public function OEmbedForm::addButtonSubmit in Media Directories 3.x
Same name and namespace in other branches
- 8 modules/media_directories_ui/src/Form/OEmbedForm.php \Drupal\media_directories_ui\Form\OEmbedForm::addButtonSubmit()
- 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
Namespace
Drupal\media_directories_ui\FormCode
public function addButtonSubmit(array $form, FormStateInterface $form_state) {
$this
->processInputValues([
$form_state
->getValue('url'),
], $form, $form_state);
}