public function PhotosMediaLibraryForm::addButtonSubmit in Album Photos 8.5
Same name and namespace in other branches
- 6.0.x 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\FormCode
public function addButtonSubmit(array $form, FormStateInterface $form_state) {
$this
->processInputValues([
$form_state
->getValue('photos'),
], $form, $form_state);
}