You are here

public function AuditFilesConfig::submitForm in Audit Files 8

Same name and namespace in other branches
  1. 8.3 src/Form/AuditFilesConfig.php \Drupal\auditfiles\Form\AuditFilesConfig::submitForm()
  2. 8.2 src/Form/AuditFilesConfig.php \Drupal\auditfiles\Form\AuditFilesConfig::submitForm()
  3. 4.x src/Form/AuditFilesConfig.php \Drupal\auditfiles\Form\AuditFilesConfig::submitForm()

Submit popup after login configurations.

Overrides ConfigFormBase::submitForm

File

src/Form/AuditFilesConfig.php, line 146

Class

AuditFilesConfig
Use this class to create configuration form for module.

Namespace

Drupal\auditfiles\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('auditfiles_config.settings')
    ->set('auditfiles_file_system_path', $form_state
    ->getValue('auditfiles_file_system_path'))
    ->set('auditfiles_exclude_files', $form_state
    ->getValue('auditfiles_exclude_files'))
    ->set('auditfiles_exclude_extensions', $form_state
    ->getValue('auditfiles_exclude_extensions'))
    ->set('auditfiles_exclude_paths', $form_state
    ->getValue('auditfiles_exclude_paths'))
    ->set('auditfiles_include_domains', $form_state
    ->getValue('auditfiles_include_domains'))
    ->set('auditfiles_report_options_items_per_page', $form_state
    ->getValue('auditfiles_report_options_items_per_page'))
    ->set('auditfiles_report_options_maximum_records', $form_state
    ->getValue('auditfiles_report_options_maximum_records'))
    ->set('auditfiles_report_options_batch_size', $form_state
    ->getValue('auditfiles_report_options_batch_size'))
    ->set('auditfiles_report_options_date_format', $form_state
    ->getValue('auditfiles_report_options_date_format'))
    ->save();
  parent::submitForm($form, $form_state);
}