public function SocialLinkFieldSettingsForm::submitForm in Social Link Field 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/ SocialLinkFieldSettingsForm.php, line 49
Class
- SocialLinkFieldSettingsForm
- Implements the SocialLinkFieldSettings form controller.
Namespace
Drupal\social_link_field\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->configFactory
->getEditable('social_link_field.settings')
->set('attached_fa', $form_state
->getValue('attached_fa'))
->save();
parent::submitForm($form, $form_state);
}