You are here

public function EmergencyForm::submitFieldAttach in Display Suite 8.2

Same name and namespace in other branches
  1. 8.4 src/Form/EmergencyForm.php \Drupal\ds\Form\EmergencyForm::submitFieldAttach()
  2. 8.3 src/Form/EmergencyForm.php \Drupal\ds\Form\EmergencyForm::submitFieldAttach()

Submit callback for the fields error form.

File

src/Form/EmergencyForm.php, line 130

Class

EmergencyForm
Emergency form for DS.

Namespace

Drupal\ds\Form

Code

public function submitFieldAttach(array &$form, FormStateInterface $form_state) {
  $this->state
    ->set('ds.disabled', $this->state
    ->get('ds.disabled', FALSE) ? FALSE : TRUE);
  drupal_set_message($this
    ->t('The configuration options have been saved.'));
}