You are here

public function ConfigSyncImportForm::updateModeChange in Configuration Synchronizer 8.2

Form submission callback for changing the update mode.

Parameters

array $form: The form render array.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

Return value

array The form render array.

File

src/Form/ConfigSyncImportForm.php, line 151

Class

ConfigSyncImportForm

Namespace

Drupal\config_sync\Form

Code

public function updateModeChange(array &$form, FormStateInterface $form_state) {

  // Save the selected update_mode.
  $this->state
    ->set('config_sync.update_mode', (int) $form_state
    ->getValue('update_mode'));
}