public function EmergencyForm::submitFieldAttach in Display Suite 8.2
Same name and namespace in other branches
- 8.4 src/Form/EmergencyForm.php \Drupal\ds\Form\EmergencyForm::submitFieldAttach()
- 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\FormCode
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.'));
}