You are here

public function PageAccessForm::submitForm in Page Manager 8.4

Same name and namespace in other branches
  1. 8 page_manager_ui/src/Form/PageAccessForm.php \Drupal\page_manager_ui\Form\PageAccessForm::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/PageAccessForm.php, line 68

Class

PageAccessForm

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() == 'Update') {
    return;
  }
  parent::submitForm($form, $form_state);
}