public function SettingsForm::submitForm in Akamai 8
Same name and namespace in other branches
- 8.2 src/Form/SettingsForm.php \Drupal\akamai\Form\SettingsForm::submitForm()
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
- lib/
Drupal/ akamai/ Form/ SettingsForm.php, line 116 - Contains \Drupal\akamai\Form\SettingsForm.
Class
- SettingsForm
- Defines a form that configures Akamai settings.
Namespace
Drupal\akamai\FormCode
public function submitForm(array &$form, array &$form_state) {
$this->configFactory
->get('akamai.settings')
->set('wsdl', $form_state['values']['akamai_wsdl'])
->set('restapi', $form_state['values']['akamai_restapi'])
->set('restapi_default', $form_state['values']['akamai_restapi_default'])
->set('basepath', $form_state['values']['akamai_basepath'])
->set('username', $form_state['values']['akamai_username'])
->set('password', $form_state['values']['akamai_password'])
->set('domain', $form_state['values']['akamai_domain'])
->set('action', $form_state['values']['akamai_action'])
->set('email', $form_state['values']['akamai_email'])
->save();
}