You are here

public function PageVariantSelectionForm::submitForm in Page Manager 8.4

Same name and namespace in other branches
  1. 8 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 97

Class

PageVariantSelectionForm

Namespace

Drupal\page_manager_ui\Form

Code

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);
}