public function JuicerAdminForm::submitForm in Juicer - Social Media Feed Aggregator 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/ JuicerAdminForm.php, line 79 - Contains \Drupal\juicerio\src\Form\JuicerAdminForm.
Class
- JuicerAdminForm
- Class JuicerAdminForm.
Namespace
Drupal\juicerio\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('juicerio.settings')
->set('juicer_feed_id', $form_state
->getValue('juicer_feed_id'))
->set('juicer_blocks', $form_state
->getValue('juicer_blocks'))
->set('juicer_js_embed', $form_state
->getValue('juicer_js_embed'))
->save();
parent::submitForm($form, $form_state);
}