You are here

public function SkypeSettingsForm::dummySubmit in Skype 8

Dummy submit callback to change rebuild form after ajax call.

Parameters

array $form:

\Drupal\Core\Form\FormStateInterface $form_state:

File

src/Form/SkypeSettingsForm.php, line 252

Class

SkypeSettingsForm
Class SkypeSettingsForm.

Namespace

Drupal\skype\Form

Code

public function dummySubmit(array &$form, FormStateInterface $form_state) {
  $this->enabled = $form_state
    ->getValue('enable_chat');
  if (!empty($form_state
    ->getValue('initiate_chat'))) {
    $this->initiateChat = $form_state
      ->getValue('initiate_chat');
  }
  if (!empty($form_state
    ->getValue('button_style'))) {
    $this->buttonStyle = $form_state
      ->getValue('button_style');
  }
  $form_state
    ->setRebuild(TRUE);
}