public function SimpleFBConnectAdmin::submitForm in Simple FB Connect 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/ SimpleFBConnectAdmin.php, line 82
Class
Namespace
Drupal\simple_fb_connect\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('simple_fb_connect.settings')
->set('simple_fb_connect_appid', $form_state
->getValue('simple_fb_connect_appid'));
$this
->config('simple_fb_connect.settings')
->set('simple_fb_connect_skey', $form_state
->getValue('simple_fb_connect_skey'));
$this
->config('simple_fb_connect.settings')
->set('simple_fb_connect_login_only', $form_state
->getValue('simple_fb_connect_login_only'));
$this
->config('simple_fb_connect.settings')
->set('simple_fb_connect_post_login_url', $form_state
->getValue('simple_fb_connect_post_login_url'));
$this
->config('simple_fb_connect.settings')
->set('simple_fb_connect_user_pictures', $form_state
->getValue('simple_fb_connect_user_pictures'));
$this
->config('simple_fb_connect.settings')
->set('simple_fb_connect_picture_dimensions', $form_state
->getValue('simple_fb_connect_picture_dimensions'));
$this
->config('simple_fb_connect.settings')
->save();
drupal_set_message($this
->t('The configuration options have been saved.'));
}