public function DomainAccessSettingsForm::submitForm in Domain Access 8
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 ConfigFormBase::submitForm
File
- domain_access/
src/ Form/ DomainAccessSettingsForm.php, line 57
Class
- DomainAccessSettingsForm
- Class DomainAccessSettingsForm.
Namespace
Drupal\domain_access\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('domain_access.settings')
->set('node_advanced_tab', (bool) $form_state
->getValue('node_advanced_tab'))
->set('node_advanced_tab_open', (bool) $form_state
->getValue('node_advanced_tab_open'))
->save();
parent::submitForm($form, $form_state);
}