function 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);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
