public function AdminOverviewForm::submitForm in SMS Framework 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
- modules/
sms_sendtophone/ src/ Form/ AdminOverviewForm.php, line 43
Class
- AdminOverviewForm
- Defines admin overview form.
Namespace
Drupal\sms_sendtophone\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('sms_sendtophone.settings')
->set('content_types', array_filter($form_state
->getValue('content_types')))
->save();
drupal_set_message($this
->t('The configuration options have been saved.'));
}