public function PageVariantSelectionForm::submitForm in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/Form/PageVariantSelectionForm.php \Drupal\page_manager_ui\Form\PageVariantSelectionForm::submitForm()
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 ManageConditions::submitForm
File
- page_manager_ui/src/ Form/ PageVariantSelectionForm.php, line 96 
- Contains \Drupal\page_manager_ui\Form\PageVariantSelectionForm.
Class
Namespace
Drupal\page_manager_ui\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
  $triggering_element = $form_state
    ->getTriggeringElement();
  if ($triggering_element['#value']
    ->getUntranslatedString() != 'Add Condition') {
    return;
  }
  parent::submitForm($form, $form_state);
}