function OEmbedForm::addButtonSubmit

Same name in other branches
  1. 8.9.x core/modules/media_library/src/Form/OEmbedForm.php \Drupal\media_library\Form\OEmbedForm::addButtonSubmit()
  2. 10 core/modules/media_library/src/Form/OEmbedForm.php \Drupal\media_library\Form\OEmbedForm::addButtonSubmit()
  3. 11.x 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\Form

Code

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.