You are here

public function FacebookMediaLibraryAddForm::addButtonSubmit in Media entity facebook 3.x

Submit handler for the add button.

Parameters

array $form: The form render array.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

File

src/Form/FacebookMediaLibraryAddForm.php, line 71

Class

FacebookMediaLibraryAddForm
Creates a form to create Facebook media entities from within Media Library.

Namespace

Drupal\media_entity_facebook\Form

Code

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