public function SharethisConfigurationForm::submitForm in Sharethis block 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/ SharethisConfigurationForm.php, line 61
Class
- SharethisConfigurationForm
- Configure sharethis for this site.
Namespace
Drupal\sharethis_block\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->config('sharethis_block.configuration')
->set('sharethis_property', $values['property_id'])
->set('sharethis_inline', $values['inline'])
->save();
parent::submitForm($form, $form_state);
}