ContentUploadSelectForm.php in GatherContent 8.3
File
src/Form/ContentUploadSelectForm.php
View source
<?php
namespace Drupal\gathercontent\Form;
use Drupal\Core\Form\FormStateInterface;
class ContentUploadSelectForm extends ContentSelectForm {
public function getFormId() {
return 'gathercontent_content_upload_form';
}
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->store
->set('nodes', array_filter($form_state
->getValue('nodes')));
$form_state
->setRedirect('gathercontent.upload_confirm_form');
}
}