public function LinkedinInsightsAdminSettingsForm::submitForm in LinkedIn Insights Tag 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/ LinkedinInsightsAdminSettingsForm.php, line 81
Class
- LinkedinInsightsAdminSettingsForm
- Configure Google_Analytics settings for this site.
Namespace
Drupal\linkedin_insights_tag\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('linkedin_insights_tag.settings');
$config
->set('user_role_roles', $form_state
->getValue('linkedin_insights_tag_visibility_user_role_roles'))
->set('partner_id', $form_state
->getValue('linkedin_insights_tag_partner_id'))
->set('image_only', $form_state
->getValue('linkedin_insights_image_only'))
->save();
parent::submitForm($form, $form_state);
}