You are here

public function ConfigSyncInitialize::submitForm in Configuration Synchronizer 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 FormInterface::submitForm

File

src/Form/ConfigSyncInitialize.php, line 306

Class

ConfigSyncInitialize

Namespace

Drupal\config_sync\Form

Code

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

  // @todo: feed second argument to ::initialize.
  $this->configSyncInitializer
    ->initialize($form_state
    ->getValue('retain_active_overrides'));
  $form_state
    ->setRedirect('config_sync.import');
}