public function ContentConfirmForm::submitForm in GatherContent 8.4
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
1 method overrides ContentConfirmForm::submitForm()
- ContentUpdateConfirmForm::submitForm in gathercontent_ui/
src/ Form/ ContentUpdateConfirmForm.php - Form submission handler.
File
- gathercontent_ui/
src/ Form/ ContentConfirmForm.php, line 247
Class
- ContentConfirmForm
- Provides a node deletion confirmation form.
Namespace
Drupal\gathercontent_ui\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
if ($form_state
->getValue('confirm') && !empty($this->nodeIds)) {
// Do something.
}
}