public function PISettings::submitForm in International Phone 3.x
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/ PISettings.php, line 46
Class
- PISettings
- Form with setting for phone international.
Namespace
Drupal\phone_international\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('phone_international.settings')
->set('cdn', $form_state
->getValue('cdn'))
->save();
parent::submitForm($form, $form_state);
}