public function AdminSettingsForm::submitForm in Entity Share 8.3
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
- modules/
entity_share_diff/ src/ Form/ AdminSettingsForm.php, line 75
Class
- AdminSettingsForm
- Configure Entity share diff on this site.
Namespace
Drupal\entity_share_diff\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->configFactory
->getEditable(static::SETTINGS)
->set('context', $form_state
->getValue('context'))
->save();
parent::submitForm($form, $form_state);
}