public function FacebookPixelConfigForm::submitForm in Facebook Pixel 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/ FacebookPixelConfigForm.php, line 48
Class
- FacebookPixelConfigForm
- Facebook Pixel config.
Namespace
Drupal\facebook_pixel\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('facebook_pixel.facebookpixelconfig')
->set('facebook_id', $form_state
->getValue('facebook_id'))
->save();
}