You are here

public function VkxpTokenSettingsForm::submitForm in VK CrossPoster 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/VkxpTokenSettingsForm.php, line 60
Contains \Drupal\vkxp\Form\vkxpSettingsForm.

Class

VkxpTokenSettingsForm

Namespace

Drupal\vkxp\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('vkxp.token_settings')
    ->set('vkxp_access_token', $form_state
    ->getValue('vkxp_access_token'))
    ->save();
  parent::submitForm($form, $form_state);
}