public function AcquiadamConfig::submitForm in Media: Acquia DAM 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
- src/
Form/ AcquiadamConfig.php, line 397
Class
- AcquiadamConfig
- Class AcquiadamConfig.
Namespace
Drupal\media_acquiadam\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('media_acquiadam.settings')
->set('username', $form_state
->getValue('username'))
->set('password', $form_state
->getValue('password'))
->set('client_id', $form_state
->getValue('client_id'))
->set('secret', $form_state
->getValue('secret'))
->set('sync_interval', $form_state
->getValue('sync_interval'))
->set('size_limit', $form_state
->getValue('size_limit'))
->set('notifications_sync', $form_state
->getValue('notifications_sync'))
->set('perform_sync_delete', $form_state
->getValue('perform_sync_delete'))
->set('num_images_per_page', $form_state
->getValue('num_images_per_page'))
->set('samesite_cookie_disable', $form_state
->getValue('samesite_cookie_disable'))
->save();
parent::submitForm($form, $form_state);
}