public function OEmbedForm::addButtonSubmit in Drupal 9
Same name and namespace in other branches
- 8 core/modules/media_library/src/Form/OEmbedForm.php \Drupal\media_library\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
- core/
modules/ media_library/ src/ Form/ OEmbedForm.php, line 174
Class
- OEmbedForm
- Creates a form to create media entities from oEmbed URLs.
Namespace
Drupal\media_library\FormCode
public function addButtonSubmit(array $form, FormStateInterface $form_state) {
$this
->processInputValues([
$form_state
->getValue('url'),
], $form, $form_state);
}