You are here

public function ContentUpdateSelectForm::submitForm in GatherContent 8.3

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

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

Overrides ContentSelectForm::submitForm

File

src/Form/ContentUpdateSelectForm.php, line 24

Class

ContentUpdateSelectForm
Class ContentUpdateSelectForm.

Namespace

Drupal\gathercontent\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->store
    ->set('nodes', array_filter($form_state
    ->getValue('nodes')));
  $form_state
    ->setRedirect('gathercontent.update_confirm_form');
}