You are here

public function ContentConfirmForm::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 FormInterface::submitForm

2 methods override ContentConfirmForm::submitForm()
ContentUpdateConfirmForm::submitForm in src/Form/ContentUpdateConfirmForm.php
Form submission handler.
ContentUploadConfirmForm::submitForm in src/Form/ContentUploadConfirmForm.php
Form submission handler.

File

src/Form/ContentConfirmForm.php, line 234

Class

ContentConfirmForm
Provides a node deletion confirmation form.

Namespace

Drupal\gathercontent\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  if ($form_state
    ->getValue('confirm') && !empty($this->nodeIds)) {

    // Do something.
  }
}