You are here

public function PhotosMediaLibraryForm::addButtonSubmit in Album Photos 6.0.x

Same name and namespace in other branches
  1. 8.5 src/Form/PhotosMediaLibraryForm.php \Drupal\photos\Form\PhotosMediaLibraryForm::addButtonSubmit()

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/PhotosMediaLibraryForm.php, line 99

Class

PhotosMediaLibraryForm
Creates a form to create media entities from oEmbed URLs.

Namespace

Drupal\photos\Form

Code

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